Use GetBoolean directly

This commit is contained in:
Ryohei Ikegami 2017-03-28 20:00:33 +09:00
parent 9edfbab89f
commit 37c4569982

View file

@ -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.