chore: move more constants to options_switches.h/cc (#13093)

* Add options::kNativeWindowOpen

* Add options::kSandbox

* Add options::kPlugins

* Add options::kWebSecurity

* Add options::kAllowRunningInsecureContent

* Add options::kOffscreen
This commit is contained in:
Milan Burda 2018-05-29 10:09:51 +02:00 committed by Charles Kerr
parent ec44fb79d8
commit 45e78728bd
11 changed files with 47 additions and 22 deletions

View file

@ -205,7 +205,7 @@ void AtomRendererClient::SetupMainWorldOverrides(
dict.Set(options::kOpenerID,
command_line->GetSwitchValueASCII(switches::kOpenerID));
dict.Set("hiddenPage", command_line->HasSwitch(switches::kHiddenPage));
dict.Set("nativeWindowOpen",
dict.Set(options::kNativeWindowOpen,
command_line->HasSwitch(switches::kNativeWindowOpen));
v8::Local<v8::Value> args[] = {binding};