refactor: use gin_helper::Dictionary::CreateEmpty() helper (#40140)
This commit is contained in:
parent
47beca1d2a
commit
563c370d51
17 changed files with 30 additions and 42 deletions
|
@ -203,8 +203,7 @@ void UsbChooserContext::RevokeObjectPermissionInternal(
|
|||
if (session) {
|
||||
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
|
||||
v8::HandleScope scope(isolate);
|
||||
gin_helper::Dictionary details =
|
||||
gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
auto details = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
details.Set("device", object);
|
||||
details.Set("origin", origin.Serialize());
|
||||
session->Emit("usb-device-revoked", details);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue