Index: chrome/browser/sync/profile_sync_test_util.h |
diff --git a/chrome/browser/sync/profile_sync_test_util.h b/chrome/browser/sync/profile_sync_test_util.h |
index 2fb42747645beb0ca76ef03bdbb024fdcfc78fc7..7062907c3dfa7a489eabac383585afe3eb7bcded 100644 |
--- a/chrome/browser/sync/profile_sync_test_util.h |
+++ b/chrome/browser/sync/profile_sync_test_util.h |
@@ -30,7 +30,7 @@ ACTION_P(Notify, type) { |
ACTION(QuitUIMessageLoop) { |
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
class SyncServiceObserverMock : public sync_driver::SyncServiceObserver { |