Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5885)

Unified Diff: chrome/app/mash/mash_runner.cc

Issue 2573593002: Chrome Mash: Use absolute path to run chrome executable (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698