Index: chrome/browser/sync/profile_sync_service_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc |
index e18bbfd3e0d8fdebcd89bb29dfb7d522315e8599..406bfe368edee81d6ce309952db7ef672bd6406b 100644 |
--- a/chrome/browser/sync/profile_sync_service_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc |
@@ -82,11 +82,11 @@ class ProfileSyncServiceTestHarness { |
profile.reset(); |
// Pump messages posted by the sync thread (which may end up |
// posting on the IO thread). |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
io_thread_.Stop(); |
file_thread_.Stop(); |
// Ensure that the sync objects destruct to avoid memory leaks. |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
} |
// TODO(akalin): Refactor the StartSyncService*() functions below. |