Index: chrome/browser/autocomplete/search_provider_unittest.cc |
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc |
index 8e97e13e48e2cdfb3d0e08757c4755da94e88b37..d3dc4e3c72aa7557726abd938e0af4261d191d49 100644 |
--- a/chrome/browser/autocomplete/search_provider_unittest.cc |
+++ b/chrome/browser/autocomplete/search_provider_unittest.cc |
@@ -202,7 +202,7 @@ void SearchProviderTest::QueryForInput(const string16& text, |
// RunAllPending so that the task scheduled by SearchProvider to create the |
// URLFetchers runs. |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
} |
void SearchProviderTest::QueryForInputAndSetWYTMatch( |
@@ -222,7 +222,7 @@ void SearchProviderTest::QueryForInputAndSetWYTMatch( |
} |
void SearchProviderTest::TearDown() { |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
// Shutdown the provider before the profile. |
provider_ = NULL; |