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

Unified Diff: mojo/shell/runner/host/in_process_native_runner.cc

Issue 1722743002: Adds ability for chrome to behave as mojo_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to tip of tree Created 4 years, 10 months 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
Index: mojo/shell/runner/host/in_process_native_runner.cc
diff --git a/mojo/shell/runner/host/in_process_native_runner.cc b/mojo/shell/runner/host/in_process_native_runner.cc
index 69738a69b6baebc56e2371180937159480c89348..9dd19d0edf39217553530cc669c031872b577919 100644
--- a/mojo/shell/runner/host/in_process_native_runner.cc
+++ b/mojo/shell/runner/host/in_process_native_runner.cc
@@ -12,7 +12,6 @@
#include "base/task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "base/threading/platform_thread.h"
-#include "mojo/shell/runner/host/command_line_switch.h"
#include "mojo/shell/runner/host/native_application_support.h"
#include "mojo/shell/runner/host/out_of_process_native_runner.h"
#include "mojo/shell/runner/init.h"
@@ -35,6 +34,7 @@ InProcessNativeRunner::~InProcessNativeRunner() {
void InProcessNativeRunner::Start(
const base::FilePath& app_path,
+ const Identity& target,
bool start_sandboxed,
InterfaceRequest<mojom::ShellClient> request,
const base::Callback<void(base::ProcessId)>& pid_available_callback,
@@ -83,8 +83,8 @@ scoped_ptr<NativeRunner> InProcessNativeRunnerFactory::Create(
const base::FilePath& app_path) {
// Non-Mojo apps are always run in a new process.
if (!app_path.MatchesExtension(FILE_PATH_LITERAL(".mojo"))) {
- return make_scoped_ptr(new OutOfProcessNativeRunner(
- launch_process_runner_, std::vector<CommandLineSwitch>()));
+ return make_scoped_ptr(
+ new OutOfProcessNativeRunner(launch_process_runner_, nullptr));
}
return make_scoped_ptr(new InProcessNativeRunner);
}

Powered by Google App Engine
This is Rietveld 408576698