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

Unified Diff: mojo/runner/desktop/launcher_process.cc

Issue 1434563004: Enable multiprocess by default on desktop mojo_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/runner/BUILD.gn ('k') | mojo/services/network/url_loader_impl_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/desktop/launcher_process.cc
diff --git a/mojo/runner/desktop/launcher_process.cc b/mojo/runner/desktop/launcher_process.cc
index fb2c896cb908377e7fd12e86c67a8b98ac33f99f..6ed5c0f77b154635fb549a3c33e3f95d4baf490a 100644
--- a/mojo/runner/desktop/launcher_process.cc
+++ b/mojo/runner/desktop/launcher_process.cc
@@ -21,20 +21,26 @@
#include "mojo/runner/context.h"
#include "mojo/runner/switches.h"
#include "mojo/runner/tracer.h"
+#include "mojo/shell/switches.h"
namespace mojo {
namespace runner {
int LauncherProcessMain(int argc, char** argv) {
mojo::runner::Tracer tracer;
- const base::CommandLine& command_line =
- *base::CommandLine::ForCurrentProcess();
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ if (!command_line->HasSwitch(switches::kMojoSingleProcess) &&
+ !command_line->HasSwitch("gtest_list_tests"))
+ command_line->AppendSwitch(switches::kEnableMultiprocess);
+ command_line->AppendSwitch("use-new-edk");
+ // http://crbug.com/546644
+ command_line->AppendSwitch(switches::kMojoNoSandbox);
- bool trace_startup = command_line.HasSwitch(switches::kTraceStartup);
+ bool trace_startup = command_line->HasSwitch(switches::kTraceStartup);
if (trace_startup) {
tracer.Start(
- command_line.GetSwitchValueASCII(switches::kTraceStartup),
- command_line.GetSwitchValueASCII(switches::kTraceStartupDuration),
+ command_line->GetSwitchValueASCII(switches::kTraceStartup),
+ command_line->GetSwitchValueASCII(switches::kTraceStartupDuration),
"mandoline.trace");
}
« no previous file with comments | « mojo/runner/BUILD.gn ('k') | mojo/services/network/url_loader_impl_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698