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

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

Issue 2212063002: [Autofill] Implement Autofill Assistant infobar for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ifdef Created 4 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
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | components/autofill_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a37f16fba01030b2145d4c0ccf8bf1505cfd4660..9cf49dc34fdddb1935d147c523d310a88ff94c9c 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -134,9 +134,6 @@ base::string16 CreditCard::TypeForDisplay(const std::string& type) {
return ::autofill::TypeForFill(type);
}
-// This method is not compiled on iOS because the resources are not used and
-// should not be shipped.
-#if !defined(OS_IOS)
// static
int CreditCard::IconResourceId(const std::string& type) {
if (type == kAmericanExpressCard)
@@ -159,7 +156,6 @@ int CreditCard::IconResourceId(const std::string& type) {
DCHECK_EQ(kGenericCard, type);
return IDR_AUTOFILL_CC_GENERIC;
}
-#endif // #if !defined(OS_IOS)
// static
const char* CreditCard::GetCreditCardType(const base::string16& number) {
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | components/autofill_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698