Index: chrome/browser/chromeos/offline/offline_load_page_unittest.cc |
diff --git a/chrome/browser/chromeos/offline/offline_load_page_unittest.cc b/chrome/browser/chromeos/offline/offline_load_page_unittest.cc |
index 9c25e9ecdff0a94e09e3db0ebacb187a5b937681..19c85185f6e1af3d336be32a2e365457947d3ab9 100644 |
--- a/chrome/browser/chromeos/offline/offline_load_page_unittest.cc |
+++ b/chrome/browser/chromeos/offline/offline_load_page_unittest.cc |
@@ -117,11 +117,11 @@ TEST_F(OfflineLoadPageTest, OfflinePageProceed) { |
ShowInterstitial(kURL2); |
InterstitialPage* interstitial = GetOfflineLoadPage(); |
ASSERT_TRUE(interstitial); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// Simulate the user clicking "proceed". |
interstitial->Proceed(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_EQ(OK, user_response()); |
@@ -144,7 +144,7 @@ TEST_F(OfflineLoadPageTest, OfflinePageDontProceed) { |
ShowInterstitial(kURL2); |
InterstitialPage* interstitial = GetOfflineLoadPage(); |
ASSERT_TRUE(interstitial); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// Simulate the user clicking "don't proceed". |
interstitial->DontProceed(); |