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

Unified Diff: services/service_manager/public/cpp/lib/service_runner.cc

Issue 2566663004: Revert of Build services as standalone executables (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 | « services/service_manager/native_runner.h ('k') | services/service_manager/public/cpp/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/public/cpp/lib/service_runner.cc
diff --git a/services/service_manager/public/cpp/lib/service_runner.cc b/services/service_manager/public/cpp/lib/service_runner.cc
index ac333d22833ecd406db7d623324c9daefff27467..2b8b388600ef6334dfbecb76cc499914bef27c40 100644
--- a/services/service_manager/public/cpp/lib/service_runner.cc
+++ b/services/service_manager/public/cpp/lib/service_runner.cc
@@ -71,7 +71,12 @@
}
MojoResult ServiceRunner::Run(MojoHandle service_request_handle) {
- return Run(service_request_handle, false);
+ bool init_base = true;
+ if (base::CommandLine::InitializedForCurrentProcess()) {
+ init_base =
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("single-process");
+ }
+ return Run(service_request_handle, init_base);
}
void ServiceRunner::Quit() {
« no previous file with comments | « services/service_manager/native_runner.h ('k') | services/service_manager/public/cpp/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698