diff --git a/shell/browser/api/electron_api_web_request.cc b/shell/browser/api/electron_api_web_request.cc index 2bec3aafd6462..2b218a125666c 100644 --- a/shell/browser/api/electron_api_web_request.cc +++ b/shell/browser/api/electron_api_web_request.cc @@ -387,7 +387,7 @@ void WebRequest::SetListener(Event event, std::set filter_patterns; gin::Dictionary dict(args->isolate()); if (args->GetNext(&arg) && !arg->IsFunction()) { - // Note that gin treats Function as Dictionary when doing convertions, so we + // Note that gin treats Function as Dictionary when doing conversions, so we // have to explicitly check if the argument is Function before trying to // convert it to Dictionary. if (gin::ConvertFromV8(args->isolate(), arg, &dict)) { diff --git a/shell/browser/ui/accelerator_util.h b/shell/browser/ui/accelerator_util.h index e3b942dc189db..c3b68c1617b83 100644 --- a/shell/browser/ui/accelerator_util.h +++ b/shell/browser/ui/accelerator_util.h @@ -23,7 +23,7 @@ typedef std::map AcceleratorTable; bool StringToAccelerator(const std::string& description, ui::Accelerator* accelerator); -// Generate a table that contains memu model's accelerators and command ids. +// Generate a table that contains menu model's accelerators and command ids. void GenerateAcceleratorTable(AcceleratorTable* table, electron::ElectronMenuModel* model); diff --git a/shell/common/gin_helper/callback.h b/shell/common/gin_helper/callback.h index 4e5a5614baf2b..f4e54dabed33e 100644 --- a/shell/common/gin_helper/callback.h +++ b/shell/common/gin_helper/callback.h @@ -14,7 +14,7 @@ #include "shell/common/gin_helper/function_template.h" #include "shell/common/gin_helper/locker.h" #include "shell/common/gin_helper/microtasks_scope.h" -// Implements safe convertions between JS functions and base::RepeatingCallback. +// Implements safe conversions between JS functions and base::RepeatingCallback. namespace gin_helper { @@ -110,7 +110,7 @@ struct V8FunctionInvoker { } }; -// Helper to pass a C++ funtion to JavaScript. +// Helper to pass a C++ function to JavaScript. using Translater = base::RepeatingCallback; v8::Local CreateFunctionFromTranslater(v8::Isolate* isolate, const Translater& translater, diff --git a/shell/common/gin_helper/function_template.h b/shell/common/gin_helper/function_template.h index afab3da3264f1..69b6ce3dfceb3 100644 --- a/shell/common/gin_helper/function_template.h +++ b/shell/common/gin_helper/function_template.h @@ -96,7 +96,7 @@ bool GetNextArgument(gin::Arguments* args, } // Support base::Optional as output, which would be empty and do not throw error -// when convertion to T fails. +// when conversion to T fails. template bool GetNextArgument(gin::Arguments* args, int create_flags,