Index: chrome/browser/sync/profile_sync_service_startup_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_startup_unittest.cc b/chrome/browser/sync/profile_sync_service_startup_unittest.cc |
index e926df478bc37a3c49ca7bf356a7d4b1fca604ec..3c24b144fde019e1cda244dbcc8aed058dc92029 100644 |
--- a/chrome/browser/sync/profile_sync_service_startup_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_startup_unittest.cc |
@@ -78,10 +78,10 @@ class ProfileSyncServiceStartupTest : public testing::Test { |
// Pump messages posted by the sync core thread (which may end up |
// posting on the IO thread). |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
io_thread_.Stop(); |
file_thread_.Stop(); |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
} |
protected: |