From: Cheng Zhao Date: Thu, 20 Feb 2014 17:04:27 +0000 (+0800) Subject: Only append arguments for browser process. X-Git-Tag: v0.10.0~6^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=18f8af78225dea2ef48aafde6abd183b5b6803c7;p=electron.git Only append arguments for browser process. --- diff --git a/app/atom_main_delegate.cc b/app/atom_main_delegate.cc index af5d4b60..5a529b26 100644 --- a/app/atom_main_delegate.cc +++ b/app/atom_main_delegate.cc @@ -60,8 +60,8 @@ void AtomMainDelegate::PreSandboxStartup() { std::string process_type = command_line->GetSwitchValueASCII( switches::kProcessType); - // Don't append arguments for renderer process. - if (process_type == switches::kRendererProcess) + // Only append arguments for browser process. + if (!process_type.empty()) return; // Add a flag to mark the start of switches added by atom-shell.