Index: components/password_manager/core/browser/test_password_store.cc |
diff --git a/components/password_manager/core/browser/test_password_store.cc b/components/password_manager/core/browser/test_password_store.cc |
index 17bd0f772db2ae5ce4a3dc3c6ea43cf2dc9e2c9c..4932a48b305edd1784a085a3fbcaaa0aa2e8c8a3 100644 |
--- a/components/password_manager/core/browser/test_password_store.cc |
+++ b/components/password_manager/core/browser/test_password_store.cc |
@@ -49,6 +49,15 @@ void TestPasswordStore::WrapModificationTask(ModificationTask task) { |
task.Run(); |
} |
+void TestPasswordStore::GetAutofillableLoginsImpl( |
+ PasswordStore::GetLoginsRequest* request) { |
+ for (auto& forms_for_realm : stored_passwords_) { |
+ for (const autofill::PasswordForm& form : forms_for_realm.second) |
+ request->result()->push_back(new autofill::PasswordForm(form)); |
+ } |
+ ForwardLoginsResult(request); |
+} |
+ |
PasswordStoreChangeList TestPasswordStore::AddLoginImpl( |
const autofill::PasswordForm& form) { |
PasswordStoreChangeList changes; |