| Index: components/autofill/core/browser/credit_card.cc
|
| diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc
|
| index b98790d101b84b03c8c3266bb601ddfbfa1a5cde..2d99620b07a251127e1427c461d4c9a298cd195e 100644
|
| --- a/components/autofill/core/browser/credit_card.cc
|
| +++ b/components/autofill/core/browser/credit_card.cc
|
| @@ -771,6 +771,11 @@ bool CreditCard::ConvertMonth(const base::string16& month,
|
| return false;
|
| }
|
|
|
| +bool CreditCard::IsExpired(const base::Time& time) const {
|
| + return !IsValidCreditCardExpirationDate(expiration_year_, expiration_month_,
|
| + time);
|
| +}
|
| +
|
| // So we can compare CreditCards with EXPECT_EQ().
|
| std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card) {
|
| return os << base::UTF16ToUTF8(credit_card.Label()) << " "
|
|
|