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
|
@ -111,7 +111,7 @@ bool WriteShortcutLink(const base::FilePath& shortcut_path,
|
|||
base::win::ShortcutOperation operation =
|
||||
base::win::ShortcutOperation::kCreateAlways;
|
||||
args->GetNext(&operation);
|
||||
gin::Dictionary options = gin::Dictionary::CreateEmpty(args->isolate());
|
||||
auto options = gin::Dictionary::CreateEmpty(args->isolate());
|
||||
if (!args->GetNext(&options)) {
|
||||
args->ThrowError();
|
||||
return false;
|
||||
|
@ -146,7 +146,7 @@ bool WriteShortcutLink(const base::FilePath& shortcut_path,
|
|||
v8::Local<v8::Value> ReadShortcutLink(gin_helper::ErrorThrower thrower,
|
||||
const base::FilePath& path) {
|
||||
using base::win::ShortcutProperties;
|
||||
gin::Dictionary options = gin::Dictionary::CreateEmpty(thrower.isolate());
|
||||
auto options = gin::Dictionary::CreateEmpty(thrower.isolate());
|
||||
electron::ScopedAllowBlockingForElectron allow_blocking;
|
||||
base::win::ScopedCOMInitializer com_initializer;
|
||||
base::win::ShortcutProperties properties;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue