Index: chrome/browser/policy/policy_loader_mac_unittest.cc |
diff --git a/chrome/browser/policy/policy_loader_mac_unittest.cc b/chrome/browser/policy/policy_loader_mac_unittest.cc |
index 4e454b0c357a0cb86a3b3817606268f22527e401..d5cfde35437a2a4d419b5f467adfb29aca38a872 100644 |
--- a/chrome/browser/policy/policy_loader_mac_unittest.cc |
+++ b/chrome/browser/policy/policy_loader_mac_unittest.cc |
@@ -261,7 +261,7 @@ TEST_F(PolicyLoaderMacTest, Invalid) { |
// Make the provider read the updated |prefs_|. |
provider_.RefreshPolicies(); |
- loop_.RunAllPending(); |
+ loop_.RunUntilIdle(); |
const PolicyBundle kEmptyBundle; |
EXPECT_TRUE(provider_.policies().Equals(kEmptyBundle)); |
} |
@@ -276,7 +276,7 @@ TEST_F(PolicyLoaderMacTest, TestNonForcedValue) { |
// Make the provider read the updated |prefs_|. |
provider_.RefreshPolicies(); |
- loop_.RunAllPending(); |
+ loop_.RunUntilIdle(); |
PolicyBundle expected_bundle; |
expected_bundle.Get(POLICY_DOMAIN_CHROME, "") |
.Set(test_policy_definitions::kKeyString, POLICY_LEVEL_RECOMMENDED, |