From 18f8af78225dea2ef48aafde6abd183b5b6803c7 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 21 Feb 2014 01:04:27 +0800 Subject: [PATCH] Only append arguments for browser process. --- app/atom_main_delegate.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/atom_main_delegate.cc b/app/atom_main_delegate.cc index af5d4b6079..5a529b26fe 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.