Refactor: Fix misspellings.
Miscellaneous spellfixes. No functional changes. Instances of "necessary" and "board". Change-Id: Ib3c9031ca98cdd2f7ebc661a62692b9ebba8c9b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040063 Auto-Submit: Darwin Huang <huangdarwin@chromium.org> Commit-Queue: Darwin Huang <huangdarwin@chromium.org> Commit-Queue: Kentaro Hara <haraken@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#738772}
This commit is contained in:
ash/components/shortcut_viewer/views
chrome
android
features
keyboard_accessory
javatests
src
org
chromium
chrome
browser
keyboard_accessory
java
src
org
chromium
chrome
browser
tabmodel
browser
browser_process_impl.cc
chromeos
input_method
login
policy
smb_client
extensions
api
virtual_keyboard_private
webrtc_logging_private
ui
app_list
search
search_result_ranker
renderer
extensions
components
invalidation
omnibox
browser
translate
core
browser
content/shell/test_runner
docs
extensions/shell/browser
jingle/glue
media/cast/test/utility
net/disk_cache/memory
testing/merge_scripts
third_party/blink
renderer
core
editing
web_tests
tools/perf/core
ui
@ -15,7 +15,7 @@ class SearchBoxViewDelegate;
|
||||
|
||||
namespace keyboard_shortcut_viewer {
|
||||
|
||||
// A search_box_SearchBoxViewBase implementation for KeybaordShortcutViewer.
|
||||
// A search_box_SearchBoxViewBase implementation for KeyboardShortcutViewer.
|
||||
class KSVSearchBoxView : public search_box::SearchBoxViewBase {
|
||||
public:
|
||||
explicit KSVSearchBoxView(search_box::SearchBoxViewDelegate* delegate);
|
||||
|
@ -318,7 +318,7 @@ public class ManualFillingIntegrationTest {
|
||||
|
||||
@Test
|
||||
@SmallTest
|
||||
public void testInfobarStaysHiddenWhileChangingFieldsWithOpenKeybaord()
|
||||
public void testInfobarStaysHiddenWhileChangingFieldsWithOpenKeyboard()
|
||||
throws TimeoutException {
|
||||
mHelper.loadTestPage(false);
|
||||
|
||||
|
@ -364,7 +364,7 @@ public class TabModelSelectorImpl extends TabModelSelectorBase implements TabMod
|
||||
mVisibleTab = tab;
|
||||
|
||||
// Don't execute the tab display part if Chrome has just been sent to background. This
|
||||
// avoids uneccessary work (tab restore) and prevents pollution of tab display metrics - see
|
||||
// avoids unecessary work (tab restore) and prevents pollution of tab display metrics - see
|
||||
// http://crbug.com/316166.
|
||||
if (type != TabSelectionType.FROM_EXIT) {
|
||||
tab.show(type);
|
||||
|
@ -235,7 +235,7 @@ BrowserProcessImpl::BrowserProcessImpl(StartupData* startup_data) {
|
||||
|
||||
void BrowserProcessImpl::Init() {
|
||||
#if defined(OS_CHROMEOS)
|
||||
// Forces creation of |metrics_services_manager_client_| if neccessary
|
||||
// Forces creation of |metrics_services_manager_client_| if necessary
|
||||
// (typically this call is a no-op as MetricsServicesManager has already been
|
||||
// created).
|
||||
GetMetricsServicesManager();
|
||||
|
@ -527,7 +527,7 @@ void InputMethodManagerImpl::StateImpl::ChangeInputMethod(
|
||||
}
|
||||
|
||||
// Always change input method even if it is the same.
|
||||
// TODO(komatsu): Revisit if this is neccessary.
|
||||
// TODO(komatsu): Revisit if this is necessary.
|
||||
if (IsActive())
|
||||
manager_->ChangeInputMethodInternal(*descriptor, profile, show_message,
|
||||
notify_menu);
|
||||
|
@ -427,7 +427,7 @@ TEST_F(InputMethodManagerImplTest, TestObserver) {
|
||||
|
||||
// The observer is always notified even when the same input method ID is
|
||||
// passed to ChangeInputMethod() more than twice.
|
||||
// TODO(komatsu): Revisit if this is neccessary.
|
||||
// TODO(komatsu): Revisit if this is necessary.
|
||||
EXPECT_EQ(3, observer.input_method_changed_count_);
|
||||
|
||||
// If the same input method ID is passed, PropertyChanged() is not
|
||||
|
@ -174,7 +174,7 @@ bool GetUserLockAttributes(const user_manager::User* user,
|
||||
return true;
|
||||
}
|
||||
|
||||
// Sets the neccessary delegates in Public Session. They will be active for the
|
||||
// Sets the necessary delegates in Public Session. They will be active for the
|
||||
// whole user-session and they will go away together with the browser process
|
||||
// during logout (the browser process is destroyed during logout), ie. they are
|
||||
// not freed and they leak but that is fine.
|
||||
|
@ -58,7 +58,7 @@ class AndroidManagementClient {
|
||||
~AndroidManagementClient();
|
||||
|
||||
// Starts sending of check Android management request to DM server, issues
|
||||
// access token if neccessary. |callback| is called on check Android
|
||||
// access token if necessary. |callback| is called on check Android
|
||||
// management completion.
|
||||
void StartCheckAndroidManagement(const StatusCallback& callback);
|
||||
|
||||
|
@ -25,13 +25,13 @@ void SmbTaskQueue::AddTask(SmbTask task, OperationId operation_id) {
|
||||
}
|
||||
operation_map_[operation_id].push(std::move(task));
|
||||
|
||||
RunTaskIfNeccessary();
|
||||
RunTaskIfNecessary();
|
||||
}
|
||||
|
||||
void SmbTaskQueue::TaskFinished() {
|
||||
DCHECK_GT(num_pending_, 0u);
|
||||
--num_pending_;
|
||||
RunTaskIfNeccessary();
|
||||
RunTaskIfNecessary();
|
||||
}
|
||||
|
||||
void SmbTaskQueue::AbortOperation(OperationId operation_id) {
|
||||
@ -40,7 +40,7 @@ void SmbTaskQueue::AbortOperation(OperationId operation_id) {
|
||||
operation_map_.erase(operation_id);
|
||||
}
|
||||
|
||||
void SmbTaskQueue::RunTaskIfNeccessary() {
|
||||
void SmbTaskQueue::RunTaskIfNecessary() {
|
||||
PruneOperationQueue();
|
||||
if (IsCapacityToRunTask() && IsTaskToRun()) {
|
||||
RunNextTask();
|
||||
|
@ -75,7 +75,7 @@ class SmbTaskQueue {
|
||||
|
||||
// This runs the next task in operations_ if there is capacity to run an
|
||||
// additional task, and a task remaing to run.
|
||||
void RunTaskIfNeccessary();
|
||||
void RunTaskIfNecessary();
|
||||
|
||||
// Helper method that returns the next task to run.
|
||||
SmbTask GetNextTask();
|
||||
|
@ -304,7 +304,7 @@ bool ChromeVirtualKeyboardDelegate::SetDraggableArea(
|
||||
const api::virtual_keyboard_private::Bounds& rect) {
|
||||
auto* keyboard_client = ChromeKeyboardControllerClient::Get();
|
||||
// Since controller will be destroyed when system switch from VK to
|
||||
// physical keyboard, return true to avoid unneccessary exception.
|
||||
// physical keyboard, return true to avoid unnecessary exception.
|
||||
if (!keyboard_client->is_keyboard_enabled())
|
||||
return true;
|
||||
|
||||
|
@ -286,7 +286,7 @@ bool WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::RunAsync() {
|
||||
params->should_upload);
|
||||
|
||||
// Post a task since this is an asynchronous extension function.
|
||||
// TODO(devlin): This is unneccessary; this should just be a
|
||||
// TODO(devlin): This is unnecessary; this should just be a
|
||||
// ExtensionFunction. Fix this.
|
||||
base::PostTask(
|
||||
FROM_HERE, {BrowserThread::UI},
|
||||
|
@ -313,7 +313,7 @@ void SearchResultRanker::InitializeRankers(
|
||||
void SearchResultRanker::FetchRankings(const base::string16& query) {
|
||||
// The search controller potentially calls SearchController::FetchResults
|
||||
// several times for each user's search, so we cache the results of querying
|
||||
// the models for a short time, to prevent uneccessary queries.
|
||||
// the models for a short time, to prevent unecessary queries.
|
||||
const auto& now = Time::Now();
|
||||
if (now - time_of_last_fetch_ < kMinSecondsBetweenFetches)
|
||||
return;
|
||||
|
@ -39,7 +39,7 @@ bool CrossesExtensionProcessBoundary(const ExtensionSet& extensions,
|
||||
if (!old_url_extension && !new_url_extension) {
|
||||
// Hypothetically, we could also do an origin check here to make sure that
|
||||
// the two urls point two different extensions, but it's not really
|
||||
// necesary since we know there wasn't an associated extension with the old
|
||||
// necessary since we know there wasn't an associated extension with the old
|
||||
// url.
|
||||
return new_url.SchemeIs(kExtensionScheme);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ class InvalidationLoggerObserver;
|
||||
// and then rebroadcast it to observers than can display it accordingly
|
||||
// (like a debugging page). This class only stores lightweight state, as in
|
||||
// which services are registered and listening for certain objects, and the
|
||||
// status of the InvalidatorService (in order not to increase unnecesary
|
||||
// status of the InvalidatorService (in order not to increase unnecessary
|
||||
// memory usage).
|
||||
//
|
||||
// Observers can be registered and will be called to be notified of any
|
||||
|
@ -497,7 +497,7 @@ void ZeroSuggestProvider::OnMostVisitedUrlsAvailable(
|
||||
void ZeroSuggestProvider::OnRemoteSuggestionsLoaderAvailable(
|
||||
std::unique_ptr<network::SimpleURLLoader> loader) {
|
||||
// RemoteSuggestionsService has already started |loader|, so here it's
|
||||
// only neccessary to grab its ownership until results come in to
|
||||
// only necessary to grab its ownership until results come in to
|
||||
// OnURLLoadComplete().
|
||||
loader_ = std::move(loader);
|
||||
LogOmniboxZeroSuggestRequest(ZERO_SUGGEST_REQUEST_SENT);
|
||||
|
@ -860,7 +860,7 @@ void TranslatePrefs::RegisterProfilePrefs(
|
||||
}
|
||||
|
||||
void TranslatePrefs::MigrateSitesBlacklist() {
|
||||
// Migration should only be neccessary once but there could still be old
|
||||
// Migration should only be necessary once but there could still be old
|
||||
// Chrome instances that sync the old preference, so do it once per
|
||||
// startup.
|
||||
static bool migrated = false;
|
||||
|
@ -447,7 +447,7 @@ std::vector<std::string> MakeMenuItemStringsFor(
|
||||
// These constants are based on Safari's context menu because tests are made
|
||||
// for it.
|
||||
static const char* kNonEditableMenuStrings[] = {
|
||||
"Back", "Reload Page", "Open in Dashbaord",
|
||||
"Back", "Reload Page", "Open in Dashboard",
|
||||
"<separator>", "View Source", "Save Page As",
|
||||
"Print Page", "Inspect Element", nullptr};
|
||||
static const char* kEditableMenuStrings[] = {"Cut",
|
||||
|
@ -28,7 +28,7 @@ applied to every BUILD.gn file in the project. This has multiple drawbacks:
|
||||
|
||||
## Conversion pattern
|
||||
|
||||
To convert a BUILD.gn file it is neccessary to change the following:
|
||||
To convert a BUILD.gn file it is necessary to change the following:
|
||||
|
||||
```
|
||||
source_set("foo") {
|
||||
|
@ -18,7 +18,7 @@ class ShellBrowserMainDelegate {
|
||||
virtual ~ShellBrowserMainDelegate() {}
|
||||
|
||||
// Called to start an application after all initialization processes that are
|
||||
// necesary to run apps are completed.
|
||||
// necessary to run apps are completed.
|
||||
virtual void Start(content::BrowserContext* context) = 0;
|
||||
|
||||
// Called after the main message looop has stopped, but before
|
||||
|
@ -92,7 +92,7 @@ class JingleThreadWrapper
|
||||
// Following methods are not supported. They are overriden just to
|
||||
// ensure that they are not called (each of them contain NOTREACHED
|
||||
// in the body). Some of this methods can be implemented if it
|
||||
// becomes neccessary to use libjingle code that calls them.
|
||||
// becomes necessary to use libjingle code that calls them.
|
||||
void Quit() override;
|
||||
void Restart() override;
|
||||
bool Get(rtc::Message* message, int delay_ms, bool process_io) override;
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
#
|
||||
# The purpose of this script is to set up all the neccessary magic to
|
||||
# The purpose of this script is to set up all the necessary magic to
|
||||
# pipe network traffic through a user-space process. That user-space
|
||||
# process can then delay, reorder and drop packets as it pleases to
|
||||
# emulate various network environments.
|
||||
|
@ -72,7 +72,7 @@ class NET_EXPORT_PRIVATE MemBackendImpl final : public Backend {
|
||||
void OnEntryDoomed(MemEntryImpl* entry);
|
||||
|
||||
// Adjust the current size of this backend by |delta|. This is used to
|
||||
// determine if eviction is neccessary and when eviction is finished.
|
||||
// determine if eviction is necessary and when eviction is finished.
|
||||
void ModifyStorageSize(int32_t delta);
|
||||
|
||||
// Returns true if the cache's size is greater than the maximum allowed
|
||||
|
@ -115,7 +115,7 @@ def _merge_json_test_result_format(shard_results_list):
|
||||
# To make sure that we don't mutate existing shard_results_list.
|
||||
shard_results_list = copy.deepcopy(shard_results_list)
|
||||
for result_json in shard_results_list:
|
||||
# TODO(tansell): check whether this deepcopy is actually neccessary.
|
||||
# TODO(tansell): check whether this deepcopy is actually necessary.
|
||||
result_json = copy.deepcopy(result_json)
|
||||
|
||||
# Check the version first
|
||||
|
@ -80,7 +80,7 @@ void DispatchCompositionUpdateEvent(LocalFrame& frame, const String& text) {
|
||||
void DispatchCompositionEndEvent(LocalFrame& frame, const String& text) {
|
||||
// Verify that the caller is using an EventQueueScope to suppress the input
|
||||
// event from being fired until the proper time (e.g. after applying an IME
|
||||
// selection update, if necesary).
|
||||
// selection update, if necessary).
|
||||
DCHECK(ScopedEventQueue::Instance()->ShouldQueueEvents());
|
||||
|
||||
Element* target = frame.GetDocument()->FocusedElement();
|
||||
@ -134,7 +134,7 @@ void InsertTextDuringCompositionWithEvents(
|
||||
TypingCommand::TextCompositionType composition_type) {
|
||||
// Verify that the caller is using an EventQueueScope to suppress the input
|
||||
// event from being fired until the proper time (e.g. after applying an IME
|
||||
// selection update, if necesary).
|
||||
// selection update, if necessary).
|
||||
DCHECK(ScopedEventQueue::Instance()->ShouldQueueEvents());
|
||||
DCHECK(composition_type ==
|
||||
TypingCommand::TextCompositionType::kTextCompositionUpdate ||
|
||||
@ -572,7 +572,7 @@ bool InputMethodController::ReplaceText(const String& text,
|
||||
bool InputMethodController::ReplaceComposition(const String& text) {
|
||||
// Verify that the caller is using an EventQueueScope to suppress the input
|
||||
// event from being fired until the proper time (e.g. after applying an IME
|
||||
// selection update, if necesary).
|
||||
// selection update, if necessary).
|
||||
DCHECK(ScopedEventQueue::Instance()->ShouldQueueEvents());
|
||||
|
||||
if (!HasComposition())
|
||||
|
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-no-quote.tentative.html
vendored
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-no-quote.tentative.html
vendored
@ -6,7 +6,7 @@
|
||||
</script>
|
||||
<link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
|
||||
<script>
|
||||
var this_script_is_neccessary_to_block_the_inline_style_processing = true;
|
||||
var this_script_is_necessary_to_block_the_inline_style_processing = true;
|
||||
</script>
|
||||
<style>
|
||||
@import url(resources/dummy.css?second);
|
||||
|
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-no-semicolon.tentative.html
vendored
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-no-semicolon.tentative.html
vendored
@ -6,7 +6,7 @@
|
||||
</script>
|
||||
<link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
|
||||
<script>
|
||||
var this_script_is_neccessary_to_block_the_inline_style_processing = true;
|
||||
var this_script_is_necessary_to_block_the_inline_style_processing = true;
|
||||
</script>
|
||||
<style>
|
||||
@import url("resources/dummy.css?second")
|
||||
|
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-no-space.tentative.html
vendored
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-no-space.tentative.html
vendored
@ -6,7 +6,7 @@
|
||||
</script>
|
||||
<link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
|
||||
<script>
|
||||
var this_script_is_neccessary_to_block_the_inline_style_processing = true;
|
||||
var this_script_is_necessary_to_block_the_inline_style_processing = true;
|
||||
</script>
|
||||
<style>@import url("resources/dummy.css?second")</style>
|
||||
<script>
|
||||
|
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-single-quote.tentative.html
vendored
2
third_party/blink/web_tests/external/wpt/loading/preloader-css-import-single-quote.tentative.html
vendored
@ -6,7 +6,7 @@
|
||||
</script>
|
||||
<link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
|
||||
<script>
|
||||
var this_script_is_neccessary_to_block_the_inline_style_processing = true;
|
||||
var this_script_is_necessary_to_block_the_inline_style_processing = true;
|
||||
</script>
|
||||
<style>
|
||||
@import url('resources/dummy.css?second');
|
||||
|
@ -6,7 +6,7 @@
|
||||
</script>
|
||||
<link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
|
||||
<script>
|
||||
var this_script_is_neccessary_to_block_the_inline_style_processing = true;
|
||||
var this_script_is_necessary_to_block_the_inline_style_processing = true;
|
||||
</script>
|
||||
<style>
|
||||
@import url("resources/dummy.css?second");
|
||||
|
@ -120,7 +120,7 @@ def _merge_json_test_result_format(shard_results_list):
|
||||
# To make sure that we don't mutate existing shard_results_list.
|
||||
shard_results_list = copy.deepcopy(shard_results_list)
|
||||
for result_json in shard_results_list:
|
||||
# TODO(tansell): check whether this deepcopy is actually neccessary.
|
||||
# TODO(tansell): check whether this deepcopy is actually necessary.
|
||||
result_json = copy.deepcopy(result_json)
|
||||
|
||||
# Check the version first
|
||||
|
@ -355,7 +355,7 @@ TEST_F(InputMethodUtilTest, TestGetFirstLoginInputMethodIds_Us_And_Zh) {
|
||||
util_.GetFirstLoginInputMethodIds("zh-CN", *descriptor, &input_method_ids);
|
||||
ASSERT_EQ(2U, input_method_ids.size());
|
||||
EXPECT_EQ(Id("xkb:us::eng"), input_method_ids[0]);
|
||||
EXPECT_EQ(Id(pinyin_ime_id), input_method_ids[1]); // Pinyin for US keybaord.
|
||||
EXPECT_EQ(Id(pinyin_ime_id), input_method_ids[1]); // Pinyin for US keyboard.
|
||||
}
|
||||
|
||||
// US keyboard + Russian UI = US keyboard + Russsian keyboard
|
||||
|
@ -138,7 +138,7 @@ cr.define('cr.ui', function() {
|
||||
|
||||
/**
|
||||
* Handles click events on the tree and forwards the event to the relevant
|
||||
* tree items as necesary.
|
||||
* tree items as necessary.
|
||||
* @param {Event} e The click event object.
|
||||
*/
|
||||
handleClick(e) {
|
||||
|
Reference in New Issue
Block a user