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

Unified Diff: shell/context.cc

Issue 848013004: Make --gdb work for android (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing file Created 5 years, 11 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 | « no previous file | shell/desktop/mojo_main.cc » ('j') | sky/tools/mojo_cache_linker.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index c10841c221271419f0fe99dec0dfe86eaaee3606..74184eb1d00983a0bd9f2224618658d518c0df7e 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "base/base_switches.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -151,6 +152,9 @@ bool Context::Init() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kWaitForDebugger))
qsr 2015/01/16 00:04:18 You should be able to do this at the very start of
eseidel 2015/01/16 00:14:05 Assuming it's safe to call the command line before
+ base::debug::WaitForDebugger(60, true);
+
if (command_line->HasSwitch(switches::kEnableExternalApplications)) {
listener_ = ExternalApplicationListener::Create(
task_runners_->shell_runner(), task_runners_->io_runner());
« no previous file with comments | « no previous file | shell/desktop/mojo_main.cc » ('j') | sky/tools/mojo_cache_linker.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698