Index: chrome/browser/extensions/settings/settings_frontend_unittest.cc |
diff --git a/chrome/browser/extensions/settings/settings_frontend_unittest.cc b/chrome/browser/extensions/settings/settings_frontend_unittest.cc |
index 570d2a3bebb1c6cf58c0fe82f3aca115be45b84a..73ee6a1cd2d975525e5ee6c4b91b7ce0bf352153 100644 |
--- a/chrome/browser/extensions/settings/settings_frontend_unittest.cc |
+++ b/chrome/browser/extensions/settings/settings_frontend_unittest.cc |
@@ -67,7 +67,7 @@ class ExtensionSettingsFrontendTest : public testing::Test { |
frontend_.reset(); |
profile_.reset(); |
// Execute any pending deletion tasks. |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
} |
protected: |
@@ -138,7 +138,7 @@ TEST_F(ExtensionSettingsFrontendTest, SettingsClearedOnUninstall) { |
// This would be triggered by extension uninstall via a DataDeleter. |
frontend_->DeleteStorageSoon(id); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// The storage area may no longer be valid post-uninstall, so re-request. |
storage = util::GetStorage(id, frontend_.get()); |
@@ -172,7 +172,7 @@ TEST_F(ExtensionSettingsFrontendTest, LeveldbDatabaseDeletedFromDiskOnClear) { |
} |
frontend_.reset(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// TODO(kalman): Figure out why this fails, despite appearing to work. |
// Leaving this commented out rather than disabling the whole test so that the |
// deletion code paths are at least exercised. |
@@ -272,7 +272,7 @@ TEST_F(ExtensionSettingsFrontendTest, |
frontend_->RunWithStorage( |
id, settings::LOCAL, base::Bind(&UnlimitedLocalStorageTestCallback)); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
} // namespace extensions |