| 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..4683c5e8d021c95fb281a161990ecdbd85d0842e 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& current_time) const {
|
| + return !IsValidCreditCardExpirationDate(expiration_year_, expiration_month_,
|
| + current_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()) << " "
|
|
|