Index: chrome/browser/sync/test/integration/passwords_helper.cc |
diff --git a/chrome/browser/sync/test/integration/passwords_helper.cc b/chrome/browser/sync/test/integration/passwords_helper.cc |
index ade29b66c0a562b4e31b0c7d914b27b26533ab91..4b9de837c770ee957d4246925de4ad02a53df3fc 100644 |
--- a/chrome/browser/sync/test/integration/passwords_helper.cc |
+++ b/chrome/browser/sync/test/integration/passwords_helper.cc |
@@ -48,7 +48,7 @@ class PasswordStoreConsumerHelper |
void OnGetPasswordStoreResults(ScopedVector<PasswordForm> results) override { |
result_.swap(results); |
// Quit the message loop to wake up passwords_helper::GetLogins. |
- base::MessageLoopForUI::current()->Quit(); |
+ base::MessageLoopForUI::current()->QuitWhenIdle(); |
} |
ScopedVector<PasswordForm> result() { return result_.Pass(); } |