Index: chrome/service/service_main.cc |
diff --git a/chrome/service/service_main.cc b/chrome/service/service_main.cc |
index 2670c5c359f4e13cff6b56c61eaa21aa4c690c51..03ccfe37cd8f4722ed52757a9c8d532684074e0b 100644 |
--- a/chrome/service/service_main.cc |
+++ b/chrome/service/service_main.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/debug_util.h" |
#include "base/message_loop.h" |
#include "base/path_service.h" |
#include "chrome/common/chrome_paths.h" |
@@ -14,6 +15,10 @@ |
// Mainline routine for running as the service process. |
int ServiceProcessMain(const MainFunctionParams& parameters) { |
MessageLoopForUI main_message_loop; |
+ if (parameters.command_line_.HasSwitch(switches::kWaitForDebugger)) { |
+ DebugUtil::WaitForDebugger(60, true); |
+ } |
+ |
PlatformThread::SetName("CrServiceMain"); |
#if defined(OS_WIN) |