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. |