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

Unified Diff: components/autofill/content/renderer/password_form_conversion_utils.h

Issue 2874803002: Prevent autofilling credit card security number fields with passwords. (Closed)
Patch Set: Created 3 years, 7 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_form_conversion_utils.h
diff --git a/components/autofill/content/renderer/password_form_conversion_utils.h b/components/autofill/content/renderer/password_form_conversion_utils.h
index 0529ac2c3d421677075ec0d598e5ecfd8aaea12a..80b5a8e855fee2d42ded2de9ab24150524f0598d 100644
--- a/components/autofill/content/renderer/password_form_conversion_utils.h
+++ b/components/autofill/content/renderer/password_form_conversion_utils.h
@@ -68,6 +68,9 @@ bool HasAutocompleteAttributeValue(const blink::WebInputElement& element,
// the given |element| are present.
bool HasCreditCardAutocompleteAttributes(const blink::WebInputElement& element);
+// Returns whether the form |field| looks like a credit card verification field.
+bool IsCreditCardVerificationField(const blink::WebInputElement& field);
+
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H__

Powered by Google App Engine
This is Rietveld 408576698