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

Unified Diff: mojo/shell/public/cpp/lib/application_runner.cc

Issue 1701583002: Decompose Application Package Apptest a bit more. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
« no previous file with comments | « mojo/shell/package_test_package_manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/lib/application_runner.cc
diff --git a/mojo/shell/public/cpp/lib/application_runner.cc b/mojo/shell/public/cpp/lib/application_runner.cc
index c4aba6d2b0cfa5acf30864e18411586435b687d5..785ed643a5b1cae36e861ad07c4d75f66d296fef 100644
--- a/mojo/shell/public/cpp/lib/application_runner.cc
+++ b/mojo/shell/public/cpp/lib/application_runner.cc
@@ -72,7 +72,12 @@ MojoResult ApplicationRunner::Run(MojoHandle shell_client_request_handle,
}
MojoResult ApplicationRunner::Run(MojoHandle shell_client_request_handle) {
- return Run(shell_client_request_handle, true);
+ bool init_base = true;
+ if (base::CommandLine::InitializedForCurrentProcess()) {
+ init_base =
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("single-process");
+ }
+ return Run(shell_client_request_handle, init_base);
}
} // namespace mojo
« no previous file with comments | « mojo/shell/package_test_package_manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698