Index: content/public/test/content_browser_test.cc |
diff --git a/content/public/test/content_browser_test.cc b/content/public/test/content_browser_test.cc |
index 876030a6637c70b9d89f4e7cdf2e4b9f0a9589dc..c8f358b034f584a76b823aefd0fc9c1a8e065e26 100644 |
--- a/content/public/test/content_browser_test.cc |
+++ b/content/public/test/content_browser_test.cc |
@@ -9,6 +9,7 @@ |
#include "base/logging.h" |
#include "base/message_loop/message_loop.h" |
#include "base/path_service.h" |
+#include "base/run_loop.h" |
#include "base/threading/thread_restrictions.h" |
#include "build/build_config.h" |
#include "content/public/browser/render_process_host.h" |
@@ -124,7 +125,8 @@ void ContentBrowserTest::RunTestOnMainThreadLoop() { |
#endif |
// Pump startup related events. |
- base::MessageLoopForUI::current()->RunUntilIdle(); |
+ DCHECK(base::MessageLoopForUI::IsCurrent()); |
+ base::RunLoop().RunUntilIdle(); |
#if defined(OS_MACOSX) |
pool.Recycle(); |