mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
refactor: narrow or remove gin arguments (#48300)
* refactor: narrow App:SetJumpList() arg from gin::Arguments* to v8::Isolate* * refactor: narrow WebContents::AddWorkSpace() arg from gin::Arguments* to v8::Isolate* * refactor: narrow ShowMessageBox() arg from gin::Arguments* to v8::Isolate* * refactor: narrow ShowOpenDialog() arg from gin::Arguments* to v8::Isolate* * refactor: remove unused gin::Arguments* arg from OverrideGlobalPropertyFromIsolatedWorld() * refactor: narrow WebContents::StartDrag() arg from gin::Arguments* to v8::Isolate* * refactor: narrow NetLog::StopLogging() arg from gin::Arguments* to v8::Isolate* * refactor: narrow Protocol::IsProtocolHandled() arg from gin::Arguments* to v8::Isolate*
This commit is contained in:
@@ -875,8 +875,7 @@ bool OverrideGlobalPropertyFromIsolatedWorld(
|
||||
v8::Isolate* const isolate,
|
||||
const std::vector<std::string>& key_path,
|
||||
v8::Local<v8::Object> getter,
|
||||
v8::Local<v8::Value> setter,
|
||||
gin_helper::Arguments* args) {
|
||||
v8::Local<v8::Value> setter) {
|
||||
if (key_path.empty())
|
||||
return false;
|
||||
|
||||
@@ -917,7 +916,7 @@ bool OverrideGlobalPropertyFromIsolatedWorld(
|
||||
|
||||
v8::PropertyDescriptor desc(getter_proxy, setter_proxy);
|
||||
bool success = IsTrue(target_object->DefineProperty(
|
||||
main_context, gin::StringToV8(args->isolate(), final_key), desc));
|
||||
main_context, gin::StringToV8(isolate, final_key), desc));
|
||||
DCHECK(success);
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user