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

Unified Diff: components/autofill/content/browser/wallet/wallet_items.cc

Issue 16254010: [Autofill] Update credit card type detection logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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/content/browser/wallet/wallet_items.cc
diff --git a/components/autofill/content/browser/wallet/wallet_items.cc b/components/autofill/content/browser/wallet/wallet_items.cc
index de64daeed99e2d62fbc0cb087cc44d9575aec2e2..30317ac30c3c9a7e51318a8d4d8d8b362d23392f 100644
--- a/components/autofill/content/browser/wallet/wallet_items.cc
+++ b/components/autofill/content/browser/wallet/wallet_items.cc
@@ -269,8 +269,6 @@ base::string16 WalletItems::MaskedInstrument::TypeAndLastFourDigits() const {
display_type = CreditCard::TypeForDisplay(kDiscoverCard);
else if (type_ == MASTER_CARD)
display_type = CreditCard::TypeForDisplay(kMasterCard);
- else if (type_ == SOLO)
- display_type = CreditCard::TypeForDisplay(kSoloCard);
else if (type_ == VISA)
display_type = CreditCard::TypeForDisplay(kVisaCard);
else
@@ -295,14 +293,11 @@ const gfx::Image& WalletItems::MaskedInstrument::CardIcon() const {
idr = IDR_AUTOFILL_CC_MASTERCARD;
break;
- case SOLO:
- idr = IDR_AUTOFILL_CC_SOLO;
- break;
-
case VISA:
idr = IDR_AUTOFILL_CC_VISA;
break;
+ case SOLO:
case MAESTRO:
case SWITCH:
case UNKNOWN:

Powered by Google App Engine
This is Rietveld 408576698