Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Unified Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 11413050: chrome/browser: Update calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698