Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 140093005: Add supports that allow Autofill to be initiated from textarea field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Condition wrap correction Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698