Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: components/password_manager/core/browser/test_password_store.cc

Issue 802303002: Credential Manager: Switch 'request()' to GetAutofillableLogins(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ScopedVector Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/password_manager/core/browser/test_password_store.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « components/password_manager/core/browser/test_password_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698