Index: chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc |
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc b/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc |
index 46f4c6d49ee2718a707fcee7b813c0d881cd9c02..82b49897de5ab28634dd3dd5bf9b35f52d673c4a 100644 |
--- a/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc |
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc |
@@ -132,7 +132,7 @@ class LocalFileSyncContextTest : public testing::Test { |
*changes_out = sync_file_info.changes; |
if (snapshot_out) |
*snapshot_out = snapshot.Pass(); |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
SyncStatusCode ApplyRemoteChange(FileSystemContext* file_system_context, |
@@ -169,7 +169,7 @@ class LocalFileSyncContextTest : public testing::Test { |
sync_context_->FinalizeExclusiveSync( |
file_system_context, url, |
status == SYNC_STATUS_OK /* clear_local_changes */, |
- base::MessageLoop::QuitClosure()); |
+ base::MessageLoop::QuitWhenIdleClosure()); |
} |
void StartModifyFileOnIOThread(CannedSyncableFileSystem* file_system, |