diff --git a/shell/browser/api/electron_api_global_shortcut.cc b/shell/browser/api/electron_api_global_shortcut.cc index f4e0079322f3..2b9cfe225748 100644 --- a/shell/browser/api/electron_api_global_shortcut.cc +++ b/shell/browser/api/electron_api_global_shortcut.cc @@ -46,7 +46,7 @@ namespace electron::api { gin::WrapperInfo GlobalShortcut::kWrapperInfo = {gin::kEmbedderNativeGin}; -GlobalShortcut::GlobalShortcut(v8::Isolate* isolate) {} +GlobalShortcut::GlobalShortcut() {} GlobalShortcut::~GlobalShortcut() { UnregisterAll(); @@ -151,7 +151,7 @@ void GlobalShortcut::UnregisterAll() { // static gin::Handle GlobalShortcut::Create(v8::Isolate* isolate) { - return gin::CreateHandle(isolate, new GlobalShortcut(isolate)); + return gin::CreateHandle(isolate, new GlobalShortcut()); } // static diff --git a/shell/browser/api/electron_api_global_shortcut.h b/shell/browser/api/electron_api_global_shortcut.h index 614082d889f9..2415a101bf7c 100644 --- a/shell/browser/api/electron_api_global_shortcut.h +++ b/shell/browser/api/electron_api_global_shortcut.h @@ -37,7 +37,7 @@ class GlobalShortcut final GlobalShortcut& operator=(const GlobalShortcut&) = delete; protected: - explicit GlobalShortcut(v8::Isolate* isolate); + GlobalShortcut(); ~GlobalShortcut() override; private: