From a1cbd11b5b60eddfbab2709c21fa95daaefb675f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 19 Jun 2015 21:53:29 +0800 Subject: [PATCH] Only append --register-standard-schemes when needed --- atom/browser/atom_browser_client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index c62bc6436dd..a4e2734a688 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -183,12 +183,12 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches( base::CommandLine* command_line, int process_id) { std::string process_type = command_line->GetSwitchValueASCII("type"); - if (process_type != "renderer") return; - command_line->AppendSwitchASCII(switches::kRegisterStandardSchemes, - g_custom_schemes); + if (!g_custom_schemes.empty()) + command_line->AppendSwitchASCII(switches::kRegisterStandardSchemes, + g_custom_schemes); NativeWindow* window; WebViewManager::WebViewInfo info;