Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: components/autofill/core/browser/credit_card.cc

Issue 936273002: Shorten "American Express" to "Amex" in Chrome UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gclient sync Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b51ecd5ef89ea90da4c9563e320b45cbd6db0869..34b78b20b395b4b33c13f192c1d328e3e9f3ad4a 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -185,6 +185,9 @@ const base::string16 CreditCard::StripSeparators(const base::string16& number) {
base::string16 CreditCard::TypeForDisplay(const std::string& type) {
if (kGenericCard == type)
return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_GENERIC);
+ if (kAmericanExpressCard == type)
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_AMEX_SHORT);
+
return ::autofill::TypeForFill(type);
}

Powered by Google App Engine
This is Rietveld 408576698