Index: chrome/browser/sync/profile_sync_service_session_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_session_unittest.cc b/chrome/browser/sync/profile_sync_service_session_unittest.cc |
index 527386c71000ff5075ebb6a185dce0e604535ea9..7adefd4ca27e664174b7abcc47a01cc0206374d1 100644 |
--- a/chrome/browser/sync/profile_sync_service_session_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_session_unittest.cc |
@@ -212,9 +212,9 @@ class ProfileSyncServiceSessionTest |
// Pump messages posted by the sync core thread (which may end up |
// posting on the IO thread). |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
io_thread_.Stop(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
BrowserWithTestWindowTest::TearDown(); |
} |