Index: chrome/browser/policy/device_management_service_unittest.cc |
diff --git a/chrome/browser/policy/device_management_service_unittest.cc b/chrome/browser/policy/device_management_service_unittest.cc |
index abb907d42e0e779ea809daf8e1770005cfec0143..b4447bbdbd274ae453425a34b29318ea660a0539 100644 |
--- a/chrome/browser/policy/device_management_service_unittest.cc |
+++ b/chrome/browser/policy/device_management_service_unittest.cc |
@@ -56,7 +56,7 @@ class DeviceManagementServiceTestBase : public testing::Test { |
virtual void TearDown() { |
service_.reset(); |
- loop_.RunAllPending(); |
+ loop_.RunUntilIdle(); |
} |
void ResetService() { |
@@ -65,7 +65,7 @@ class DeviceManagementServiceTestBase : public testing::Test { |
void InitializeService() { |
service_->ScheduleInitialization(0); |
- loop_.RunAllPending(); |
+ loop_.RunUntilIdle(); |
} |
DeviceManagementRequestJob* StartRegistrationJob() { |