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. |
+ 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 |
+ // change form. |
+ autofill::PasswordFormMap::const_iterator FindBestMatchForPasswordChange( |
+ const base::string16& password); |
vasilii
2015/06/03 18:32:02
A comment on the meaning of |password| is apprecia
|
+ |
// 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. |