Index: components/autofill/core/browser/credit_card.h |
diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h |
index 1651d3eab806f050a6276ce53a43546e316bbfae..c498af65cf43ad609ab27a10b4c508cd8eae5cca 100644 |
--- a/components/autofill/core/browser/credit_card.h |
+++ b/components/autofill/core/browser/credit_card.h |
@@ -31,8 +31,12 @@ class CreditCard : public AutofillDataModel { |
// The user-visible type of the card, e.g. 'Mastercard'. |
static base::string16 TypeForDisplay(const std::string& type); |
+// This method is not compiled on iOS because the resources are not used and |
+// should not be shipped. |
+#if !defined(OS_IOS) |
// The ResourceBundle ID for the appropriate credit card image. |
static int IconResourceId(const std::string& type); |
+#endif // #if !defined(OS_IOS) |
// Returns the internal representation of credit card type corresponding to |
// the given |number|. The credit card type is determined purely according to |