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

Unified Diff: components/password_manager/core/browser/password_form_manager.h

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed reviewer comments Created 5 years, 6 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/password_form_manager.h
diff --git a/components/password_manager/core/browser/password_form_manager.h b/components/password_manager/core/browser/password_form_manager.h
index 70eeccf9aea470cf1ddf94d31e96d6e65cc4b808..ee50f3df10b828f372d0fd69c4a82a1d970f7e66 100644
--- a/components/password_manager/core/browser/password_form_manager.h
+++ b/components/password_manager/core/browser/password_form_manager.h
@@ -146,6 +146,9 @@ class PasswordFormManager : public PasswordStoreConsumer {
// TODO: Make this private once we switch to the new UI.
void Save();
+ // Update |credentials_to_update| with the user typed password.
vabr (Chromium) 2015/06/19 18:03:17 It is not clear what it means to update a Password
dvadym 2015/06/22 14:43:33 Done.
+ void Update(const autofill::PasswordForm& credentials_to_update);
+
// Call these if/when we know the form submission worked or failed.
// These routines are used to update internal statistics ("ActionsTaken").
void SubmitPassed();
@@ -332,6 +335,11 @@ class PasswordFormManager : public PasswordStoreConsumer {
// from password store.
void CreatePendingCredentials();
+ // Return best candidate for password update during processing the password
vabr (Chromium) 2015/06/19 18:03:17 I would not mention change password forms, the met
dvadym 2015/06/22 14:43:33 I changed comments to explaining how it works.
+ // change form.
+ autofill::PasswordFormMap::const_iterator FindBestMatchForPasswordChange(
vabr (Chromium) 2015/06/19 18:03:17 The "Change" in the name sounds confusing. What ab
vabr (Chromium) 2015/06/19 18:03:17 I suggest changing the return type to const Passwo
dvadym 2015/06/22 14:43:33 Done.
dvadym 2015/06/22 14:43:33 Change to FindBestMatchForUpdatePassword. It's not
+ const base::string16& password);
+
// Set of PasswordForms from the DB that best match the form
// being managed by this. Use a map instead of vector, because we most
// frequently require lookups by username value in IsNewLogin.

Powered by Google App Engine
This is Rietveld 408576698