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

Unified Diff: components/autofill/core/browser/autofill_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
Index: components/autofill/core/browser/autofill_field.h
diff --git a/components/autofill/core/browser/autofill_field.h b/components/autofill/core/browser/autofill_field.h
index 1c79bb2fd001fc090115c738fb06e06054185923..ba463fc96f86966bd2a5de53c7a787dcf6f186de 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -89,6 +89,13 @@ class AutofillField : public FormFieldData {
const base::string16& number,
const FormFieldData& field_data);
+ // Returns true if the select |field| contains an option that matches |regex|.
+ // If the return value is true and |index| is non-NULL, write the index of the
+ // matching option into |index|.
+ static bool FindValueInCreditTypeSelectControl(const FormFieldData& field,
+ const base::string16& regex,
+ size_t* index);
+
private:
// The unique name of this field, generated by Autofill.
base::string16 unique_name_;
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/bug_464002.out ('k') | components/autofill/core/browser/autofill_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698