Chromium Code Reviews| 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 16849bb439fc835c91e3c80b6769293d8077fcb1..4db8c32619e3b7fd67688285c0bddd5f23148c7c 100644 |
| --- a/components/autofill/content/renderer/autofill_agent.cc |
| +++ b/components/autofill/content/renderer/autofill_agent.cc |
| @@ -462,13 +462,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 |
|
Patrick Dubroy
2014/03/05 16:31:50
I delete this comment because I'm not sure that it
|
| - // 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_->AcceptAutofillSuggestionWithPassword( |
| element_, |
| - username); |
| + username, |
| + password); |
| DCHECK(handled); |
| } |