Index: chrome/browser/translate/translate_manager_browsertest.cc |
diff --git a/chrome/browser/translate/translate_manager_browsertest.cc b/chrome/browser/translate/translate_manager_browsertest.cc |
index e5d26d99d20c1eee837f5e97142780f983490e67..1aa579b4c114fe2ff58b3c85551875ca328fc2ca 100644 |
--- a/chrome/browser/translate/translate_manager_browsertest.cc |
+++ b/chrome/browser/translate/translate_manager_browsertest.cc |
@@ -205,7 +205,7 @@ class TranslateManagerTest : public ChromeRenderViewHostTestHarness, |
// The TranslateManager class processes the navigation entry committed |
// notification in a posted task; process that task. |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
virtual void Observe(int type, |
@@ -813,7 +813,7 @@ TEST_F(TranslateManagerTest, ReloadFromLocationBar) { |
// The TranslateManager class processes the navigation entry committed |
// notification in a posted task; process that task. |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_TRUE(GetTranslateInfoBar() != NULL); |
} |
@@ -1454,7 +1454,7 @@ TEST_F(TranslateManagerTest, ScriptExpires) { |
0, 0, "fr", "en", TranslateErrors::NONE)); |
// A task should have been posted to clear the script, run it. |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// Do another navigation and translation. |
SimulateNavigation(GURL("http://www.google.es"), "es", true); |