Index: components/autofill/content/renderer/password_autofill_agent.cc |
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc |
index df8056242e3eed16495550ae170eeafec6200860..cf74e810e9fef5818ce38ebed8a001fc8512732a 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.cc |
+++ b/components/autofill/content/renderer/password_autofill_agent.cc |
@@ -637,7 +637,7 @@ void PasswordAutofillAgent::OnFillPasswordForm( |
FormData form; |
FormFieldData field; |
- FindFormAndFieldForInputElement( |
+ FindFormAndFieldForFormControlElement( |
username_element, &form, &field, REQUIRE_NONE); |
Send(new AutofillHostMsg_AddPasswordFormMapping( |
routing_id(), |
@@ -699,7 +699,7 @@ bool PasswordAutofillAgent::ShowSuggestionPopup( |
FormData form; |
FormFieldData field; |
- FindFormAndFieldForInputElement( |
+ FindFormAndFieldForFormControlElement( |
user_input, &form, &field, REQUIRE_NONE); |
blink::WebInputElement selected_element = user_input; |