Only append command line params for renderer process

This commit is contained in:
Cheng Zhao 2015-04-26 17:26:25 +08:00
parent 4c78f98da6
commit 2f1683445b

View file

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