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

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

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months 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
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 b1994d1899d0079570fc64c037d468a21cd0444d..45a0c05ec90d1b91ece78a58251232237e18c3d8 100644
--- a/components/password_manager/core/browser/test_password_store.cc
+++ b/components/password_manager/core/browser/test_password_store.cc
@@ -37,6 +37,10 @@ bool TestPasswordStore::IsEmpty() const {
return number_of_passwords == 0u;
}
+void TestPasswordStore::AddCredentials(const autofill::PasswordForm& form) {
+ stored_passwords_[form.signon_realm].push_back(form);
+}
+
bool TestPasswordStore::FormsAreEquivalent(const autofill::PasswordForm& lhs,
const autofill::PasswordForm& rhs) {
return lhs.origin == rhs.origin &&

Powered by Google App Engine
This is Rietveld 408576698