summaryrefslogtreecommitdiffstats
path: root/mandoline
diff options
context:
space:
mode:
authorjam <jam@chromium.org>2015-05-11 11:11:38 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-11 18:12:46 +0000
commita30f77e9853d7583ed53f1048ac178194737bf38 (patch)
treee95f268503d504259ae771d80b9df203c3e1f282 /mandoline
parent71b6c7df348b822b5ed223cb8374d0cfe67f445c (diff)
downloadchromium_src-a30f77e9853d7583ed53f1048ac178194737bf38.zip
chromium_src-a30f77e9853d7583ed53f1048ac178194737bf38.tar.gz
chromium_src-a30f77e9853d7583ed53f1048ac178194737bf38.tar.bz2
Make --wait-for-debugger work for mandoline launcher process.
If specified without any switch values, it'll make the launcher process wait. Otherwise one can use an app name of "launcher". Review URL: https://codereview.chromium.org/1140553002 Cr-Commit-Position: refs/heads/master@{#329186}
Diffstat (limited to 'mandoline')
-rw-r--r--mandoline/app/desktop/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandoline/app/desktop/main.cc b/mandoline/app/desktop/main.cc
index 2e635b3..8048baf 100644
--- a/mandoline/app/desktop/main.cc
+++ b/mandoline/app/desktop/main.cc
@@ -14,6 +14,7 @@ int main(int argc, char** argv) {
base::CommandLine::Init(argc, argv);
mojo::runner::InitializeLogging();
+ mojo::runner::WaitForDebuggerIfNecessary();
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();