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

Unified Diff: chrome/renderer/autofill/form_autofill_util.cc

Issue 7978048: Don't ask the browser for Autofill suggestions for non-autofillable form fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 9 years, 3 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
« no previous file with comments | « chrome/renderer/autofill/form_autofill_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/autofill/form_autofill_util.cc
diff --git a/chrome/renderer/autofill/form_autofill_util.cc b/chrome/renderer/autofill/form_autofill_util.cc
index c3b88c309de8cb9eb6404bf00ce1446d473e5289..4f44ffc539fee3c0d3d8ea6c8b5f08f2827f96ba 100644
--- a/chrome/renderer/autofill/form_autofill_util.cc
+++ b/chrome/renderer/autofill/form_autofill_util.cc
@@ -781,9 +781,10 @@ bool WebFormElementToFormData(
return true;
}
-bool FindFormAndFieldForFormControlElement(const WebFormControlElement& element,
- FormData* form,
- webkit_glue::FormField* field) {
+bool FindFormAndFieldForInputElement(const WebInputElement& element,
+ FormData* form,
+ webkit_glue::FormField* field,
+ RequirementsMask requirements) {
if (!IsAutofillableElement(element))
return false;
@@ -795,7 +796,7 @@ bool FindFormAndFieldForFormControlElement(const WebFormControlElement& element,
static_cast<ExtractMask>(EXTRACT_VALUE | EXTRACT_OPTIONS);
return WebFormElementToFormData(form_element,
element,
- REQUIRE_NONE,
+ requirements,
extract_mask,
form,
field);
« no previous file with comments | « chrome/renderer/autofill/form_autofill_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698