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

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

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 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();
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_items.h ('k') | components/autofill/core/browser/address.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698