diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index 0ee2c7f93170..c897d5d19af9 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;