]> khamidou — GitHub mirrors - electron.git/commitdiff
Only append arguments for browser process.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 20 Feb 2014 17:04:27 +0000 (01:04 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 20 Feb 2014 17:04:27 +0000 (01:04 +0800)
app/atom_main_delegate.cc

index af5d4b607957a45b6d316c0118e8bce5d57d7829..5a529b26fe89605c0ae6a34721034e2bc7474d5e 100644 (file)
@@ -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.