From: Cheng Zhao Date: Sun, 26 Apr 2015 09:26:25 +0000 (+0800) Subject: Only append command line params for renderer process X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f1683445b8c7e089576114432575fe5e2ef2807;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.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 0ee2c7f..c897d5d 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;