Correctly quotes the argv on Windows

This commit is contained in:
Cheng Zhao 2016-06-02 21:10:39 +09:00
parent 8435f1c900
commit 3de41fb22d
3 changed files with 56 additions and 4 deletions

View file

@ -12,7 +12,6 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/strings/string_util.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/main_function_params.h"
@ -100,7 +99,7 @@ bool RelaunchAppWithHelper(const base::FilePath& helper,
base::Process process = base::LaunchProcess(relaunch_argv, options);
#elif defined(OS_WIN)
base::Process process = base::LaunchProcess(
base::JoinString(relaunch_argv, L" "), options);
internal::ArgvToCommandLineString(relaunch_argv), options);
#endif
if (!process.IsValid()) {
LOG(ERROR) << "base::LaunchProcess failed";