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 75a34c75a26041143962be118c277e481d00ca4b..27700bed98a4589728ba09e5e8371fec137d7a08 100644 |
--- a/components/autofill/core/browser/credit_card.cc |
+++ b/components/autofill/core/browser/credit_card.cc |
@@ -574,8 +574,9 @@ |
const ServerFieldType types[] = {CREDIT_CARD_NAME_FULL, CREDIT_CARD_NUMBER, |
CREDIT_CARD_EXP_MONTH, |
CREDIT_CARD_EXP_4_DIGIT_YEAR}; |
- for (ServerFieldType type : types) { |
- int comparison = GetRawInfo(type).compare(credit_card.GetRawInfo(type)); |
+ for (size_t i = 0; i < arraysize(types); ++i) { |
+ int comparison = |
+ GetRawInfo(types[i]).compare(credit_card.GetRawInfo(types[i])); |
if (comparison != 0) |
return comparison; |
} |