| Index: components/password_manager/core/browser/password_manager_client.h
|
| diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h
|
| index ef9c8b0f8d19a4447fed86a57a38610750c5e516..c161b0ec9f585c77f162344b02afe0aca266e7bb 100644
|
| --- a/components/password_manager/core/browser/password_manager_client.h
|
| +++ b/components/password_manager/core/browser/password_manager_client.h
|
| @@ -30,13 +30,19 @@ class PasswordManagerClient {
|
| // that this form doesn't need to be saved.
|
| virtual void PromptUserToSavePassword(PasswordFormManager* form_to_save) = 0;
|
|
|
| - // Called when a password is autofilled. Default implementation is a no-op.
|
| + // Called when a password is autofilled. |best_matches| contains the
|
| + // PasswordForm into which a password was filled: the client may choose to
|
| + // save this to the PasswordStore, for example. Default implementation is a
|
| + // noop.
|
| virtual void PasswordWasAutofilled(
|
| const autofill::PasswordFormMap& best_matches) const {}
|
|
|
| - // Called when password autofill is blocked by the blacklist. Default
|
| - // implementation is a no-op.
|
| - virtual void PasswordAutofillWasBlocked() const {}
|
| + // Called when password autofill is blocked by the blacklist. |best_matches|
|
| + // contains the PasswordForm that flags the current site as being on the
|
| + // blacklist. The client may choose to remove this from the PasswordStore in
|
| + // order to unblacklist a site, for example. Default implementation is a noop.
|
| + virtual void PasswordAutofillWasBlocked(
|
| + const autofill::PasswordFormMap& best_matches) const {}
|
|
|
| // Called to authenticate the autofill password data. If authentication is
|
| // successful, this should continue filling the form.
|
|
|