Index: chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc |
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc |
index b653873aff3dd4885baf81113240a8966bb7fa7a..2c84b4f563e1f6f5cd831a414cb1a578addd2076 100644 |
--- a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc |
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc |
@@ -43,7 +43,7 @@ class RulesRegistryServiceTest : public testing::Test { |
virtual void TearDown() OVERRIDE { |
// Make sure that deletion traits of all registries are executed. |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
} |
protected: |
@@ -89,7 +89,7 @@ TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) { |
base::Bind(&VerifyNumberOfRules, |
registry_service.GetRulesRegistry("io"), 1)); |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
// Test extension unloading. |
@@ -105,7 +105,7 @@ TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) { |
base::Bind(&VerifyNumberOfRules, |
registry_service.GetRulesRegistry("io"), 0)); |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
} |
} // namespace extensions |