Use GetBoolean directly
This commit is contained in:
parent
9edfbab89f
commit
37c4569982
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
|||
// integration.
|
||||
if (IsSandboxed(web_contents))
|
||||
command_line->AppendSwitch(switches::kEnableSandbox);
|
||||
if (UsesNativeWindowOpen(web_contents))
|
||||
if (web_preferences.GetBoolean("nativeWindowOpen", &b) && b)
|
||||
command_line->AppendSwitch(switches::kNativeWindowOpen);
|
||||
|
||||
// The preload script.
|
||||
|
|
Loading…
Reference in a new issue