| 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..2554abfcc80da31e2b63f644d6a2035b451757a8 100644
|
| --- a/components/autofill/core/browser/credit_card.cc
|
| +++ b/components/autofill/core/browser/credit_card.cc
|
| @@ -501,14 +501,19 @@ base::string16 CreditCard::TypeForDisplay() const {
|
| }
|
|
|
| base::string16 CreditCard::TypeAndLastFourDigits() const {
|
| - base::string16 type = TypeForDisplay();
|
| + base::string16 card_type;
|
| + if (IsAutofillCreditCardBankNameDisplayExperimentEnabled()) {
|
| + card_type = bank_name();
|
| + } else {
|
| + card_type = TypeForDisplay();
|
| + }
|
|
|
| base::string16 digits = LastFourDigits();
|
| if (digits.empty())
|
| - return type;
|
| + return card_type;
|
|
|
| // TODO(estade): i18n?
|
| - return type + base::string16(kMidlineEllipsis) + digits;
|
| + return card_type + base::string16(kMidlineEllipsis) + digits;
|
| }
|
|
|
| base::string16 CreditCard::AbbreviatedExpirationDateForDisplay() const {
|
|
|