Index: chrome/browser/extensions/api/declarative/initializing_rules_registry_unittest.cc |
diff --git a/chrome/browser/extensions/api/declarative/initializing_rules_registry_unittest.cc b/chrome/browser/extensions/api/declarative/initializing_rules_registry_unittest.cc |
index f0f6c0d3bef8a5c22bb773649e7bcf28822ac16f..48ce3e5710b53eb426a66b8b435c16f54eac1bf3 100644 |
--- a/chrome/browser/extensions/api/declarative/initializing_rules_registry_unittest.cc |
+++ b/chrome/browser/extensions/api/declarative/initializing_rules_registry_unittest.cc |
@@ -111,7 +111,7 @@ TEST(InitializingRulesRegistryTest, FillOptionalIdentifiers) { |
// Make sure that deletion traits of registry are executed. |
registry = NULL; |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
} |
TEST(InitializingRulesRegistryTest, FillOptionalPriority) { |
@@ -148,7 +148,7 @@ TEST(InitializingRulesRegistryTest, FillOptionalPriority) { |
// Make sure that deletion traits of registry are executed. |
registry = NULL; |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
} |
} // namespace extensions |