Index: chrome/browser/chromeos/settings/device_settings_test_helper.cc |
diff --git a/chrome/browser/chromeos/settings/device_settings_test_helper.cc b/chrome/browser/chromeos/settings/device_settings_test_helper.cc |
index e47444bb9b75dca8e4ac0ada75d146423c4e80b9..eb6c889bdd4135a46463162b7d2aa8bdc08f447b 100644 |
--- a/chrome/browser/chromeos/settings/device_settings_test_helper.cc |
+++ b/chrome/browser/chromeos/settings/device_settings_test_helper.cc |
@@ -22,10 +22,10 @@ void DeviceSettingsTestHelper::FlushLoops() { |
// between the message loop and the blocking pool. 2 iterations are currently |
// sufficient (key loading, signing). |
for (int i = 0; i < 2; ++i) { |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
content::BrowserThread::GetBlockingPool()->FlushForTesting(); |
} |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
void DeviceSettingsTestHelper::FlushStore() { |