Only append command line params for renderer process
This commit is contained in:
parent
4c78f98da6
commit
2f1683445b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue