| Index: chrome/app/mash/mash_runner.cc
|
| diff --git a/chrome/app/mash/mash_runner.cc b/chrome/app/mash/mash_runner.cc
|
| index ddcb2605cc1a1e23ea909b28615b5319280979b4..68f7dace0ccd84f36d356f8f969b0f5e1213b26a 100644
|
| --- a/chrome/app/mash/mash_runner.cc
|
| +++ b/chrome/app/mash/mash_runner.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/app/mash/mash_runner.h"
|
|
|
| #include "base/at_exit.h"
|
| +#include "base/base_paths.h"
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| #include "base/debug/debugger.h"
|
| @@ -13,6 +14,7 @@
|
| #include "base/logging.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/path_service.h"
|
| #include "base/process/launch.h"
|
| #include "base/run_loop.h"
|
| #include "base/task_scheduler/task_scheduler.h"
|
| @@ -94,8 +96,9 @@ class NativeRunnerDelegateImpl : public service_manager::NativeRunnerDelegate {
|
| base::CommandLine* command_line) override {
|
| if (target.name() == kChromeMashServiceName ||
|
| target.name() == content::mojom::kBrowserServiceName) {
|
| - command_line->SetProgram(
|
| - base::CommandLine::ForCurrentProcess()->GetProgram());
|
| + base::FilePath exe_path;
|
| + base::PathService::Get(base::FILE_EXE, &exe_path);
|
| + command_line->SetProgram(exe_path);
|
| }
|
| if (target.name() != content::mojom::kBrowserServiceName) {
|
| // If running anything other than the browser process, launch a mash
|
|
|