Commit 1620c5f7 authored by Darwin Huang's avatar Darwin Huang Committed by Commit Bot

Refactor: Fix misspellings.

Miscellaneous spellfixes. No functional changes.

Mostly instances of "clipboard" and "synchronous", and one of "currently".

Change-Id: Ic313394247301698afee43e6c96bdb5de3f38bac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2029458
Commit-Queue: Darwin Huang <huangdarwin@chromium.org>
Auto-Submit: Darwin Huang <huangdarwin@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737019}
parent 6c36d66c
...@@ -30,7 +30,7 @@ class NotificationPermissionUiSelector { ...@@ -30,7 +30,7 @@ class NotificationPermissionUiSelector {
virtual ~NotificationPermissionUiSelector() {} virtual ~NotificationPermissionUiSelector() {}
// Determines the UI to use for the given |request|, and invokes |callback| // Determines the UI to use for the given |request|, and invokes |callback|
// when done, either synchronously or asynchrously. The |callback| is // when done, either synchronously or asynchronously. The |callback| is
// guaranteed never to be invoked after |this| goes out of scope. Only one // guaranteed never to be invoked after |this| goes out of scope. Only one
// request is supported at a time. // request is supported at a time.
virtual void SelectUiToUse(permissions::PermissionRequest* request, virtual void SelectUiToUse(permissions::PermissionRequest* request,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
// Feature to allow devices to receive the shared clipboard message. // Feature to allow devices to receive the shared clipboard message.
extern const base::Feature kSharedClipboardReceiver; extern const base::Feature kSharedClipboardReceiver;
// Feature to allow shared clipbpard gets processed. // Feature to allow shared clipboard gets processed.
extern const base::Feature kSharedClipboardUI; extern const base::Feature kSharedClipboardUI;
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \
......
...@@ -66,7 +66,7 @@ class DataDevice : public WMHelper::DragDropObserver, ...@@ -66,7 +66,7 @@ class DataDevice : public WMHelper::DragDropObserver,
void OnDragExited() override; void OnDragExited() override;
int OnPerformDrop(const ui::DropTargetEvent& event) override; int OnPerformDrop(const ui::DropTargetEvent& event) override;
// Overridden from ui::ClipbaordObserver: // Overridden from ui::ClipboardObserver:
void OnClipboardDataChanged() override; void OnClipboardDataChanged() override;
// Overridden from SeatObserver: // Overridden from SeatObserver:
......
...@@ -63,7 +63,7 @@ class FaviconCache : public history::HistoryServiceObserver { ...@@ -63,7 +63,7 @@ class FaviconCache : public history::HistoryServiceObserver {
// isn't in our database), we simply erase all the pending callbacks, and also // isn't in our database), we simply erase all the pending callbacks, and also
// cache the result. // cache the result.
// //
// Therefore, |on_favicon_fetched| may or may not be called asynchrously // Therefore, |on_favicon_fetched| may or may not be called asynchronously
// later, but will never be called with an empty result. It will also never // later, but will never be called with an empty result. It will also never
// be called synchronously. // be called synchronously.
gfx::Image GetFaviconForPageUrl(const GURL& page_url, gfx::Image GetFaviconForPageUrl(const GURL& page_url,
......
...@@ -41,7 +41,7 @@ mojom::ActivationState ComputeActivationState( ...@@ -41,7 +41,7 @@ mojom::ActivationState ComputeActivationState(
// //
// Initially holds an empty filter in the synchronously created Core object, and // Initially holds an empty filter in the synchronously created Core object, and
// initializes the filter on the |task_runner| asynchronously. This lets ADSF be // initializes the filter on the |task_runner| asynchronously. This lets ADSF be
// created synchrously and be immediately used by clients on the UI thread, // created synchronously and be immediately used by clients on the UI thread,
// while the DSF is retrieved on the |task_runner| in a deferred manner. // while the DSF is retrieved on the |task_runner| in a deferred manner.
class AsyncDocumentSubresourceFilter { class AsyncDocumentSubresourceFilter {
public: public:
......
...@@ -126,7 +126,7 @@ void SignedExchangeLoader::OnUploadProgress( ...@@ -126,7 +126,7 @@ void SignedExchangeLoader::OnUploadProgress(
} }
void SignedExchangeLoader::OnReceiveCachedMetadata(mojo_base::BigBuffer data) { void SignedExchangeLoader::OnReceiveCachedMetadata(mojo_base::BigBuffer data) {
// Curerntly CachedMetadata for Signed Exchange is not supported. // CachedMetadata for Signed Exchange is not supported.
NOTREACHED(); NOTREACHED();
} }
......
...@@ -209,9 +209,9 @@ ExtensionFunction::ResponseAction AppWindowCreateFunction::Run() { ...@@ -209,9 +209,9 @@ ExtensionFunction::ResponseAction AppWindowCreateFunction::Run() {
// We should not return the window until that window is properly // We should not return the window until that window is properly
// initialized. Hence, adding a callback for window first navigation // initialized. Hence, adding a callback for window first navigation
// completion. // completion.
if (existing_window->DidFinishFirstNavigation()) if (existing_window->DidFinishFirstNavigation())
return RespondNow(OneArgument(std::move(result))); return RespondNow(OneArgument(std::move(result)));
existing_window->AddOnDidFinishFirstNavigationCallback( existing_window->AddOnDidFinishFirstNavigationCallback(
base::BindOnce(&AppWindowCreateFunction:: base::BindOnce(&AppWindowCreateFunction::
OnAppWindowFinishedFirstNavigationOrClosed, OnAppWindowFinishedFirstNavigationOrClosed,
...@@ -432,7 +432,7 @@ ExtensionFunction::ResponseAction AppWindowCreateFunction::Run() { ...@@ -432,7 +432,7 @@ ExtensionFunction::ResponseAction AppWindowCreateFunction::Run() {
// Delay sending the response until the newly created window has finished its // Delay sending the response until the newly created window has finished its
// navigation or was closed during that process. // navigation or was closed during that process.
// AddOnDidFinishFirstNavigationCallback() will respond asynchrously. // AddOnDidFinishFirstNavigationCallback() will respond asynchronously.
app_window->AddOnDidFinishFirstNavigationCallback(base::BindOnce( app_window->AddOnDidFinishFirstNavigationCallback(base::BindOnce(
&AppWindowCreateFunction::OnAppWindowFinishedFirstNavigationOrClosed, &AppWindowCreateFunction::OnAppWindowFinishedFirstNavigationOrClosed,
this, std::move(result_arg))); this, std::move(result_arg)));
......
...@@ -208,7 +208,7 @@ class ClipboardOzone::AsyncClipboardOzone { ...@@ -208,7 +208,7 @@ class ClipboardOzone::AsyncClipboardOzone {
// TODO(https://crbug.com/913422): the implementation is known to be // TODO(https://crbug.com/913422): the implementation is known to be
// dangerous, and may cause blocks in ui thread. But base::Clipboard was // dangerous, and may cause blocks in ui thread. But base::Clipboard was
// designed to have synchrous APIs rather than asynchronous ones that at // designed to have synchronous APIs rather than asynchronous ones that at
// least two system clipboards on X11 and Wayland provide. // least two system clipboards on X11 and Wayland provide.
base::RunLoop run_loop(base::RunLoop::Type::kNestableTasksAllowed); base::RunLoop run_loop(base::RunLoop::Type::kNestableTasksAllowed);
request->finish_closure = run_loop.QuitClosure(); request->finish_closure = run_loop.QuitClosure();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment