Index: components/autofill/core/browser/credit_card.h |
diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h |
index 217d07b91afd31264d22f4e7b221f510cc9ba549..9da67f8f428d8ca17c7b8613261c31006dc1afbb 100644 |
--- a/components/autofill/core/browser/credit_card.h |
+++ b/components/autofill/core/browser/credit_card.h |
@@ -107,6 +107,10 @@ class CreditCard : public AutofillDataModel { |
// Returns true if all field types have valid values set. |
bool IsComplete() const; |
+ // Returns true if all field types have valid values set and the card is not |
+ // expired. |
+ bool IsValid() const; |
+ |
// Returns the credit card number. |
const base::string16& number() const { return number_; } |