Index: chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc |
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc |
index 302e4a7643bdf4e566179b33aed11ae7140c05ca..d86575a8478f3665e6fa10785c0212e43106dbe4 100644 |
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc |
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc |
@@ -118,9 +118,13 @@ class SyncEngineTest |
NULL /* notification_manager */, |
extension_service_.get(), |
NULL /* signin_manager */)); |
+ |
+ base::RunLoop run_loop; |
sync_engine_->Initialize(profile_dir_.path(), |
base::MessageLoopProxy::current(), |
+ run_loop.QuitClosure(), |
in_memory_env_.get()); |
+ run_loop.Run(); |
sync_engine_->SetSyncEnabled(true); |
base::RunLoop().RunUntilIdle(); |
} |