| Index: components/autofill/core/browser/state_names.cc
|
| diff --git a/components/autofill/core/browser/state_names.cc b/components/autofill/core/browser/state_names.cc
|
| index a62f925680ff6120c370787920940131ac96efc0..c53704136689a7d0b150fe36dbbe5cf7b439c17e 100644
|
| --- a/components/autofill/core/browser/state_names.cc
|
| +++ b/components/autofill/core/browser/state_names.cc
|
| @@ -80,7 +80,8 @@
|
| } // namespace
|
|
|
| base::string16 GetAbbreviationForName(const base::string16& name) {
|
| - for (const StateData& state : kStateData) {
|
| + for (size_t i = 0; i < arraysize(kStateData); ++i) {
|
| + const StateData& state = kStateData[i];
|
| if (base::LowerCaseEqualsASCII(name, state.name))
|
| return base::ASCIIToUTF16(state.abbreviation);
|
| }
|
| @@ -88,7 +89,8 @@
|
| }
|
|
|
| base::string16 GetNameForAbbreviation(const base::string16& abbreviation) {
|
| - for (const StateData& state : kStateData) {
|
| + for (size_t i = 0; i < arraysize(kStateData); ++i) {
|
| + const StateData& state = kStateData[i];
|
| if (base::LowerCaseEqualsASCII(abbreviation, state.abbreviation))
|
| return base::ASCIIToUTF16(state.name);
|
| }
|
|
|