| Index: components/autofill/core/browser/password_autofill_manager.cc
|
| diff --git a/components/autofill/core/browser/password_autofill_manager.cc b/components/autofill/core/browser/password_autofill_manager.cc
|
| index 730c10e49d5d1b2282440dcf3dd406593cd3977b..7caa46431e1363498d1bb0113a2c3eefc883c316 100644
|
| --- a/components/autofill/core/browser/password_autofill_manager.cc
|
| +++ b/components/autofill/core/browser/password_autofill_manager.cc
|
| @@ -41,6 +41,19 @@ void PasswordAutofillManager::AddPasswordFormMapping(
|
| login_to_password_info_[username_element] = password;
|
| }
|
|
|
| +bool PasswordAutofillManager::RemovePasswordSuggestion(
|
| + const FormFieldData& field,
|
| + const base::string16& username_to_remove) {
|
| + LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(field);
|
| + if (iter == login_to_password_info_.end())
|
| + return false;
|
| + login_to_password_info_.erase(iter);
|
| +
|
| + autofill_driver_->RemovePasswordAutofillSuggestion(username_to_remove);
|
| +
|
| + return true;
|
| +}
|
| +
|
| void PasswordAutofillManager::Reset() {
|
| login_to_password_info_.clear();
|
| }
|
|
|