From 37c4569982365db5299f6e9852d3cee509bd3893 Mon Sep 17 00:00:00 2001 From: Ryohei Ikegami Date: Tue, 28 Mar 2017 20:00:33 +0900 Subject: [PATCH] Use GetBoolean directly --- atom/browser/web_contents_preferences.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/web_contents_preferences.cc b/atom/browser/web_contents_preferences.cc index aa760a83d28..adab0bf85ac 100644 --- a/atom/browser/web_contents_preferences.cc +++ b/atom/browser/web_contents_preferences.cc @@ -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.