diff options
author | jam <jam@chromium.org> | 2015-11-02 12:08:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-02 20:09:11 +0000 |
commit | e1487540269e53bd7f61667c42701ce555ba2723 (patch) | |
tree | ea2bf803babd779ac4576eeb8be25eb77b67c5b3 /mandoline | |
parent | 7ab775b43953f3d5b90e8aec907f6e0bde9d6145 (diff) | |
download | chromium_src-e1487540269e53bd7f61667c42701ce555ba2723.zip chromium_src-e1487540269e53bd7f61667c42701ce555ba2723.tar.gz chromium_src-e1487540269e53bd7f61667c42701ce555ba2723.tar.bz2 |
Enable multiprocess by default on desktop Mandoline.
This also turns on the new EDK by default (we see hangs with the old one) and disables the sandbox while a recent regression is tracked down.
BUG=478251,546644
Committed: https://crrev.com/8627a07c4dcdd84246b419b2f9659be8dc5c4ffd
Cr-Commit-Position: refs/heads/master@{#357360}
Review URL: https://codereview.chromium.org/1406403004
Cr-Commit-Position: refs/heads/master@{#357412}
Diffstat (limited to 'mandoline')
-rw-r--r-- | mandoline/app/desktop/BUILD.gn | 1 | ||||
-rw-r--r-- | mandoline/app/desktop/launcher_process.cc | 15 |
2 files changed, 11 insertions, 5 deletions
diff --git a/mandoline/app/desktop/BUILD.gn b/mandoline/app/desktop/BUILD.gn index d72fb60..9a6723c 100644 --- a/mandoline/app/desktop/BUILD.gn +++ b/mandoline/app/desktop/BUILD.gn @@ -25,6 +25,7 @@ executable("mandoline") { "//mojo/package_manager", "//mojo/runner:lib", "//mojo/runner:register_local_aliases_fwd", + "//mojo/shell", ] data_deps = [ diff --git a/mandoline/app/desktop/launcher_process.cc b/mandoline/app/desktop/launcher_process.cc index 5e21090..c92840a 100644 --- a/mandoline/app/desktop/launcher_process.cc +++ b/mandoline/app/desktop/launcher_process.cc @@ -22,19 +22,24 @@ #include "mojo/runner/context.h" #include "mojo/runner/switches.h" #include "mojo/runner/tracer.h" +#include "mojo/shell/switches.h" namespace mandoline { 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(); + 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"); } |