Index: base/test/test_suite.cc |
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc |
index f12965fc58639cb6662281f2e0436596d81feb60..0084d1e41de3e2f085d7fcbee3443befc27e7fc8 100644 |
--- a/base/test/test_suite.cc |
+++ b/base/test/test_suite.cc |
@@ -281,6 +281,13 @@ void TestSuite::SuppressErrorDialogs() { |
} |
void TestSuite::Initialize() { |
+#if !defined(OS_IOS) |
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kWaitForDebugger)) { |
+ base::debug::WaitForDebugger(60, true); |
+ } |
+#endif |
+ |
#if defined(OS_MACOSX) && !defined(OS_IOS) |
// Some of the app unit tests spin runloops. |
mock_cr_app::RegisterMockCrApp(); |