Index: chrome/browser/extensions/settings/settings_sync_unittest.cc |
diff --git a/chrome/browser/extensions/settings/settings_sync_unittest.cc b/chrome/browser/extensions/settings/settings_sync_unittest.cc |
index 9722558c3efa7063b560781b6d5055e7f54a1845..49f3d6be9e39ca37224ae0b3388f6ee93589aed5 100644 |
--- a/chrome/browser/extensions/settings/settings_sync_unittest.cc |
+++ b/chrome/browser/extensions/settings/settings_sync_unittest.cc |
@@ -217,7 +217,7 @@ class ExtensionSettingsSyncTest : public testing::Test { |
frontend_.reset(); |
profile_.reset(); |
// Execute any pending deletion tasks. |
- message_loop_.RunAllPending(); |
+ message_loop_.RunUntilIdle(); |
} |
protected: |
@@ -231,7 +231,7 @@ class ExtensionSettingsSyncTest : public testing::Test { |
// Gets the syncer::SyncableService for the given sync type. |
syncer::SyncableService* GetSyncableService(syncer::ModelType model_type) { |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
return frontend_->GetBackendForSync(model_type); |
} |