Index: chrome/browser/page_cycler/page_cycler_unittest.cc |
diff --git a/chrome/browser/page_cycler/page_cycler_unittest.cc b/chrome/browser/page_cycler/page_cycler_unittest.cc |
index 52b2418d823ac8951bc488ea6d0d8d5525d1a473..dd0bef715e307d1cd2586c40673e6537299e62ec 100644 |
--- a/chrome/browser/page_cycler/page_cycler_unittest.cc |
+++ b/chrome/browser/page_cycler/page_cycler_unittest.cc |
@@ -148,7 +148,7 @@ class PageCyclerTest : public BrowserWithTestWindowTest { |
void PumpLoop() { |
content::BrowserThread::GetBlockingPool()->FlushForTesting(); |
- message_loop()->RunAllPending(); |
+ message_loop()->RunUntilIdle(); |
} |
void CloseBrowser() { |
@@ -308,7 +308,7 @@ TEST_F(PageCyclerTest, KillBrowserAndAbort) { |
DidFinishLoad(kFrameID, kAboutURL, kIsMainFrame, _)) |
.WillOnce(Invoke(page_cycler(), |
&MockPageCycler::PageCyclerDidFinishLoad)); |
- message_loop()->RunAllPending(); |
+ message_loop()->RunUntilIdle(); |
FinishLoad(); |