Chromium Code Reviews| 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()); |