Index: content/browser/devtools/devtools_manager_unittest.cc |
diff --git a/content/browser/devtools/devtools_manager_unittest.cc b/content/browser/devtools/devtools_manager_unittest.cc |
index 31abbec6c5937018464fa7d811cc57b4d4c472db..049993265fd98312d373e4e58ea03ae39394a51e 100644 |
--- a/content/browser/devtools/devtools_manager_unittest.cc |
+++ b/content/browser/devtools/devtools_manager_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "base/location.h" |
#include "base/macros.h" |
+#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/time/time.h" |
@@ -149,7 +150,7 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedContents) { |
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), |
ncarter (slow)
2016/06/22 20:51:08
Should this use the QuitWhenIdleClosure from the R
|
TimeDelta::FromMilliseconds(10)); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
EXPECT_FALSE(delegate.renderer_unresponsive_received()); |
// Now close devtools and check that the notification is delivered. |
@@ -161,7 +162,7 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedContents) { |
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), |
ncarter (slow)
2016/06/22 20:51:08
Should this use the QuitWhenIdleClosure from the R
|
TimeDelta::FromMilliseconds(10)); |
- base::MessageLoop::current()->Run(); |
+ base::RunLoop().Run(); |
EXPECT_TRUE(delegate.renderer_unresponsive_received()); |
contents()->SetDelegate(NULL); |