From: Cheng Zhao Date: Sun, 26 Apr 2015 09:26:25 +0000 (+0800) Subject: Only append command line params for renderer process X-Git-Tag: v0.25.2~17^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2f1683445b8c7e089576114432575fe5e2ef2807;p=electron.git Only append command line params for renderer process --- diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index 0ee2c7f9..c897d5d1 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -138,6 +138,10 @@ void AtomBrowserClient::OverrideSiteInstanceForNavigation( void AtomBrowserClient::AppendExtraCommandLineSwitches( base::CommandLine* command_line, int child_process_id) { + std::string process_type = command_line->GetSwitchValueASCII("type"); + if (process_type != "renderer") + return; + WindowList* list = WindowList::GetInstance(); NativeWindow* window = nullptr;