Index: chrome/browser/sync/abstract_profile_sync_service_test.cc |
diff --git a/chrome/browser/sync/abstract_profile_sync_service_test.cc b/chrome/browser/sync/abstract_profile_sync_service_test.cc |
index 079eadcb15dcc24996b3b824598e964ba766664c..ef743760e04d71adc308ed31db3882164098573f 100644 |
--- a/chrome/browser/sync/abstract_profile_sync_service_test.cc |
+++ b/chrome/browser/sync/abstract_profile_sync_service_test.cc |
@@ -58,11 +58,11 @@ void AbstractProfileSyncServiceTest::SetUp() { |
void AbstractProfileSyncServiceTest::TearDown() { |
// 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(); |
db_thread_.Stop(); |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
} |
bool AbstractProfileSyncServiceTest::CreateRoot(ModelType model_type) { |