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

Unified Diff: shell/out_of_process_dynamic_service_runner.cc

Issue 974403002: Add --force-in-process flag to shell. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: amend comment Created 5 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: shell/out_of_process_dynamic_service_runner.cc
diff --git a/shell/out_of_process_dynamic_service_runner.cc b/shell/out_of_process_dynamic_service_runner.cc
index ebf10a3c2218302e0f3635c93eb3af9853676c30..20572a96699d24de42b137c42c9c2e0214c83e3d 100644
--- a/shell/out_of_process_dynamic_service_runner.cc
+++ b/shell/out_of_process_dynamic_service_runner.cc
@@ -9,6 +9,7 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/scoped_native_library.h"
+#include "shell/in_process_dynamic_service_runner.h"
namespace mojo {
namespace shell {
@@ -60,5 +61,13 @@ void OutOfProcessDynamicServiceRunner::AppCompleted(int32_t result) {
app_completed_callback.Run();
}
+scoped_ptr<NativeRunner> OutOfProcessDynamicServiceRunnerFactory::Create(
+ const Options& options) {
+ if (options.force_in_process)
+ return make_scoped_ptr(new InProcessDynamicServiceRunner(context_));
+
+ return make_scoped_ptr(new OutOfProcessDynamicServiceRunner(context_));
+}
+
} // namespace shell
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698