Index: components/autofill/core/browser/autofill_profile.cc |
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc |
index 602cf1bf7bb2e320f732ade1783149cd70ace8c7..469111e4ce6e0a8a6d44aaed45dbd16c956e257f 100644 |
--- a/components/autofill/core/browser/autofill_profile.cc |
+++ b/components/autofill/core/browser/autofill_profile.cc |
@@ -354,8 +354,8 @@ int AutofillProfile::Compare(const AutofillProfile& profile) const { |
PHONE_HOME_WHOLE_NUMBER, |
}; |
- for (size_t i = 0; i < arraysize(types); ++i) { |
- int comparison = GetRawInfo(types[i]).compare(profile.GetRawInfo(types[i])); |
+ for (ServerFieldType type : types) { |
+ int comparison = GetRawInfo(type).compare(profile.GetRawInfo(type)); |
if (comparison != 0) { |
return comparison; |
} |