mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: add gin_helper::Dictionary::CreateEmpty() helper (#39547)
This commit is contained in:
@@ -137,7 +137,7 @@ void ElectronSandboxedRendererClient::InitializeBindings(
|
||||
b.SetMethod("get", GetBinding);
|
||||
b.SetMethod("createPreloadScript", CreatePreloadScript);
|
||||
|
||||
gin_helper::Dictionary process = gin::Dictionary::CreateEmpty(isolate);
|
||||
auto process = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
b.Set("process", process);
|
||||
|
||||
ElectronBindings::BindProcess(isolate, &process, metrics_.get());
|
||||
|
||||
@@ -596,7 +596,7 @@ void RendererClientBase::SetupMainWorldOverrides(
|
||||
v8::HandleScope handle_scope(isolate);
|
||||
v8::Context::Scope context_scope(context);
|
||||
|
||||
gin_helper::Dictionary isolated_api = gin::Dictionary::CreateEmpty(isolate);
|
||||
auto isolated_api = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
isolated_api.SetMethod("allowGuestViewElementDefinition",
|
||||
&AllowGuestViewElementDefinition);
|
||||
isolated_api.SetMethod("setIsWebView", &SetIsWebView);
|
||||
|
||||
Reference in New Issue
Block a user