Index: components/autofill/browser/credit_card.h |
diff --git a/components/autofill/browser/credit_card.h b/components/autofill/browser/credit_card.h |
index 315d560e7eec8bf676ea8c843c23f89604577fc7..ab7d77d72a8d063b84bc0b208c45a1b674d5f70d 100644 |
--- a/components/autofill/browser/credit_card.h |
+++ b/components/autofill/browser/credit_card.h |
@@ -106,6 +106,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_; } |