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 1608c3ecbd3adbafa0eb977c83a78ca30678c0e2..6a861e2302270340b0d437d775e603fac2d6337b 100644 |
--- a/components/autofill/content/browser/wallet/wallet_items.cc |
+++ b/components/autofill/content/browser/wallet/wallet_items.cc |
@@ -309,12 +309,12 @@ const gfx::Image& WalletItems::MaskedInstrument::CardIcon() const { |
} |
base::string16 WalletItems::MaskedInstrument::GetInfo( |
- AutofillFieldType type, |
+ const AutofillType& type, |
const std::string& app_locale) const { |
- if (AutofillType(type).group() != CREDIT_CARD) |
+ if (type.group() != CREDIT_CARD) |
return address().GetInfo(type, app_locale); |
- switch (type) { |
+ switch (type.server_type()) { |
case CREDIT_CARD_NAME: |
return address().recipient_name(); |