| Index: components/autofill/content/renderer/autofill_agent.cc
|
| diff --git a/components/autofill/content/renderer/autofill_agent.cc b/components/autofill/content/renderer/autofill_agent.cc
|
| index d6dbfa17f751e4ed80b3cb3061039e1b3dc57ff7..f7d3f447720554052508f2b88eff15c3da92166b 100644
|
| --- a/components/autofill/content/renderer/autofill_agent.cc
|
| +++ b/components/autofill/content/renderer/autofill_agent.cc
|
| @@ -484,13 +484,12 @@ void AutofillAgent::OnAcceptDataListSuggestion(const base::string16& value) {
|
| }
|
|
|
| void AutofillAgent::OnAcceptPasswordAutofillSuggestion(
|
| - const base::string16& username) {
|
| - // We need to make sure this is handled here because the browser process
|
| - // skipped it handling because it believed it would be handled here. If it
|
| - // isn't handled here then the browser logic needs to be updated.
|
| - bool handled = password_autofill_agent_->DidAcceptAutofillSuggestion(
|
| + const base::string16& username,
|
| + const base::string16& password) {
|
| + bool handled = password_autofill_agent_->AcceptSuggestion(
|
| element_,
|
| - username);
|
| + username,
|
| + password);
|
| DCHECK(handled);
|
| }
|
|
|
|
|