summaryrefslogtreecommitdiffstats
path: root/chrome/worker
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/worker')
-rw-r--r--chrome/worker/worker_main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/worker/worker_main.cc b/chrome/worker/worker_main.cc
index d6304ab..b157dbe 100644
--- a/chrome/worker/worker_main.cc
+++ b/chrome/worker/worker_main.cc
@@ -39,6 +39,11 @@ int WorkerMain(const MainFunctionParams& parameters) {
target_services->LowerToken();
#endif
+ const CommandLine& parsed_command_line = parameters.command_line_;
+ if (parsed_command_line.HasSwitch(switches::kWorkerStartupDialog)) {
+ ChildProcess::WaitForDebugger(L"Worker");
+ }
+
// Load the accelerator table from the browser executable and tell the
// message loop to use it when translating messages.
MessageLoop::current()->Run();