| 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 9bd3ed769fa174af016bed0f2efadb72671ed882..a8ccdae689ea7831267b6822679c9f5435b92d08 100644
|
| --- a/components/autofill/core/browser/credit_card.cc
|
| +++ b/components/autofill/core/browser/credit_card.cc
|
| @@ -511,6 +511,14 @@ base::string16 CreditCard::TypeAndLastFourDigits() const {
|
| return type + base::string16(kMidlineEllipsis) + digits;
|
| }
|
|
|
| +base::string16 CreditCard::BankNameAndLastFourDigits() const {
|
| + base::string16 digits = LastFourDigits();
|
| + if (digits.empty())
|
| + return bank_name_;
|
| +
|
| + return bank_name_ + base::string16(kMidlineEllipsis) + digits;
|
| +}
|
| +
|
| base::string16 CreditCard::AbbreviatedExpirationDateForDisplay() const {
|
| base::string16 month = ExpirationMonthAsString();
|
| base::string16 year = Expiration2DigitYearAsString();
|
|
|