chore: fix some typos (#40506)

This commit is contained in:
David Sanders 2023-11-12 19:51:56 -08:00 committed by GitHub
parent 262723e394
commit cf5f0419f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 19 additions and 19 deletions

View file

@ -494,7 +494,7 @@ bool NotificationCallbackWrapper(
base::BindOnce(base::IgnoreResult(callback), cmd, cwd,
std::move(additional_data)));
}
// ProcessSingleton needs to know whether current process is quiting.
// ProcessSingleton needs to know whether current process is quitting.
return !Browser::Get()->is_shutting_down();
}

View file

@ -235,7 +235,7 @@ void DesktopCapturer::StartHandling(bool capture_window,
captured_sources_.clear();
if (capture_window && capture_screen) {
// Some capturers like PipeWire suppport a single capturer for both screens
// Some capturers like PipeWire support a single capturer for both screens
// and windows. Use it if possible, treating both as window capture
std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer =
webrtc::DesktopCapturer::CreateGenericCapturer(

View file

@ -22,7 +22,7 @@ class BrowserObserver : public base::CheckedObserver {
// The browser has closed all windows and will quit.
virtual void OnWillQuit(bool* prevent_default) {}
// The browser has closed all windows. If the browser is quiting, then this
// The browser has closed all windows. If the browser is quitting, then this
// method will not be called, instead it will call OnWillQuit.
virtual void OnWindowAllClosed() {}

View file

@ -145,7 +145,7 @@ file_dialog::Filters FormatFilterForExtensions(
if (first_separator_index != std::string::npos)
first_extension = first_extension.substr(0, first_separator_index);
// Find the extension name without the preceeding '.' character.
// Find the extension name without the preceding '.' character.
std::string ext_name = first_extension;
size_t ext_index = ext_name.find_first_not_of('.');
if (ext_index != std::string::npos)
@ -169,7 +169,7 @@ file_dialog::Filters FormatFilterForExtensions(
base::ReplaceChars(desc, "*", base::StringPiece(), &desc);
}
// Remove the preceeding '.' character from the extension.
// Remove the preceding '.' character from the extension.
size_t ext_index = ext.find_first_not_of('.');
if (ext_index != std::string::npos)
ext = ext.substr(ext_index);

View file

@ -26,7 +26,7 @@ void MicrotasksRunner::DidProcessTask(const base::PendingTask& pending_task) {
// https://github.com/electron/electron/issues/20013 Node.js now performs its
// own microtask checkpoint and it may happen is some situations that there is
// contention for performing checkpoint between Node.js and chromium, ending
// up Node.js dealying its callbacks. To fix this, now we always lets Node.js
// up Node.js delaying its callbacks. To fix this, now we always lets Node.js
// handle the checkpoint in the browser process.
{
v8::HandleScope handle_scope(isolate_);

View file

@ -56,7 +56,7 @@ const char kNetworkServiceSandboxEnabled[] = "net.network_service_sandbox";
}
#endif // BUILDFLAG(IS_WIN)
// The global instance of the SystemNetworkContextmanager.
// The global instance of the SystemNetworkContextManager.
SystemNetworkContextManager* g_system_network_context_manager = nullptr;
network::mojom::HttpAuthStaticParamsPtr CreateHttpAuthStaticParams() {

View file

@ -86,15 +86,15 @@ class NotifyIconHost::MouseEnteredExitedDetector {
SendExitedEvent();
}
// If timer is runnig then cursor is arelady over icon and
// CheckCursorPositionOverIcon will be repeadly checking when to send
// If timer is running then cursor is already over icon and
// CheckCursorPositionOverIcon will be repeatedly checking when to send
// mouse exited event.
if (mouse_exit_timer_.IsRunning())
return;
SendEnteredEvent(icon);
// Start repeadly checking when to send mouse exited event.
// Start repeatedly checking when to send mouse exited event.
StartObservingIcon(icon);
}

View file

@ -106,7 +106,7 @@ void UsbChooserController::OnBrowserContextShutdown() {
}
// Get a list of devices that can be shown in the chooser bubble UI for
// user to grant permsssion.
// user to grant permission.
void UsbChooserController::GotUsbDeviceList(
std::vector<::device::mojom::UsbDeviceInfoPtr> devices) {
// Listen to UsbChooserContext for OnDeviceAdded/Removed events after the

View file

@ -149,7 +149,7 @@ void ZoomLevelDelegate::InitHostZoomMap(content::HostZoomMap* host_zoom_map) {
if (host_zoom_dictionary) {
// Since we're calling this before setting up zoom_subscription_ below we
// don't need to worry that host_zoom_dictionary is indirectly affected
// by calls to HostZoomMap::SExtractPerHostZoomLevelsetZoomLevelForHost().
// by calls to HostZoomMap::SetZoomLevelForHost().
ExtractPerHostZoomLevels(*host_zoom_dictionary);
}
zoom_subscription_ =