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

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

Issue 1753253003: [Autofill] Fix heuristics to detect consecutive CVCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/credit_card_field.h
diff --git a/components/autofill/core/browser/credit_card_field.h b/components/autofill/core/browser/credit_card_field.h
index 269a1157ff1b918e591cb8040235b695cb137320..344fac82674378c7b17109b4a47e63c61cfcd4bd 100644
--- a/components/autofill/core/browser/credit_card_field.h
+++ b/components/autofill/core/browser/credit_card_field.h
@@ -59,6 +59,10 @@ class CreditCardField : public FormField {
// |CREDIT_CARD_EXP_2_DIGIT_YEAR|; otherwise |CREDIT_CARD_EXP_4_DIGIT_YEAR|.
ServerFieldType GetExpirationYearType() const;
+ // Returns whether the expiration has been set for this credit card field.
+ // It can be either a date or both the month and the year.
+ bool HasExpiration() const;
+
AutofillField* cardholder_; // Optional.
// Occasionally pages have separate fields for the cardholder's first and

Powered by Google App Engine
This is Rietveld 408576698