Index: chrome/browser/autocomplete/shortcuts_provider_unittest.cc |
diff --git a/chrome/browser/autocomplete/shortcuts_provider_unittest.cc b/chrome/browser/autocomplete/shortcuts_provider_unittest.cc |
index 2ee863257595cae9215bb31a3ae5889065406cf8..82ba0a70fac9bc2d6f726e1b88a9e36206ba6a03 100644 |
--- a/chrome/browser/autocomplete/shortcuts_provider_unittest.cc |
+++ b/chrome/browser/autocomplete/shortcuts_provider_unittest.cc |
@@ -187,7 +187,7 @@ void ShortcutsProviderTest::SetUp() { |
void ShortcutsProviderTest::TearDown() { |
// Run all pending tasks or else some threads hold on to the message loop |
// and prevent it from being deleted. |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
provider_ = NULL; |
} |
@@ -225,7 +225,7 @@ void ShortcutsProviderTest::RunTest(const string16 text, |
std::string expected_top_result) { |
std::sort(expected_urls.begin(), expected_urls.end()); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
AutocompleteInput input(text, string16(), false, false, true, |
AutocompleteInput::ALL_MATCHES); |
provider_->Start(input, false); |