]> khamidou — GitHub mirrors - electron.git/commitdiff
posix: Pass original command line
authorCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 09:43:55 +0000 (17:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 09:43:55 +0000 (17:43 +0800)
chromium_src/chrome/browser/process_singleton_posix.cc

index 811c5c16a24e2dd180a2079fd5b172f22be087aa..e338b55c5f88d65001bc24a1b2d657c8d1d9c961 100644 (file)
@@ -52,6 +52,7 @@
 #include <set>
 #include <string>
 
+#include "atom/common/atom_command_line.h"
 #include "base/base_paths.h"
 #include "base/basictypes.h"
 #include "base/bind.h"
@@ -817,7 +818,7 @@ ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessWithTimeout(
     return PROCESS_NONE;
   to_send.append(current_dir.value());
 
-  const std::vector<std::string>& argv = cmd_line.argv();
+  const std::vector<std::string>& argv = atom::AtomCommandLine::argv();
   for (std::vector<std::string>::const_iterator it = argv.begin();
       it != argv.end(); ++it) {
     to_send.push_back(kTokenDelimiter);