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

Unified Diff: components/autofill/core/browser/form_field.h

Issue 1001193002: Autofill: Better recognize credit card fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 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
« no previous file with comments | « components/autofill/core/browser/credit_card_field_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/form_field.h
diff --git a/components/autofill/core/browser/form_field.h b/components/autofill/core/browser/form_field.h
index 9a454549d3d53d788ab4d7e8a49247b787e20733..e1f4d36b7a138f818f87d282f2b0c40234aeba32 100644
--- a/components/autofill/core/browser/form_field.h
+++ b/components/autofill/core/browser/form_field.h
@@ -83,6 +83,9 @@ class FormField {
ServerFieldType type,
ServerFieldTypeMap* map);
+ // Returns true iff |type| matches |match_type|.
+ static bool MatchesFormControlType(const std::string& type, int match_type);
+
// Derived classes must implement this interface to supply field type
// information. |ParseFormFields| coordinates the parsing and extraction
// of types from an input vector of |AutofillField| objects and delegates
@@ -120,9 +123,6 @@ class FormField {
std::vector<AutofillField*>* fields,
ServerFieldTypeMap* map);
- // Returns true iff |type| matches |match_type|.
- static bool MatchesFormControlType(const std::string& type, int match_type);
-
DISALLOW_COPY_AND_ASSIGN(FormField);
};
« no previous file with comments | « components/autofill/core/browser/credit_card_field_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698