Chromium Code Reviews| 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 f73fe5eece0e2f1ea1e47a88205c70bc08378eff..53b6d18789fce371caedbefe449094f826a4fe7e 100644 |
| --- a/components/autofill/core/browser/autofill_profile.cc |
| +++ b/components/autofill/core/browser/autofill_profile.cc |
| @@ -253,7 +253,7 @@ void AutofillProfile::GetMatchingTypes( |
| const std::string& app_locale, |
| ServerFieldTypeSet* matching_types) const { |
| FormGroupList info = FormGroups(); |
| - for (const auto& it : info) { |
| + for (auto* it : info) { |
|
vabr (Chromium)
2016/07/19 07:54:08
optional nit: Since |it| is not an iterator, could
vabr (Chromium)
2016/07/19 07:54:08
nit: "const auto*" to emphasise the actual type of
vmpstr
2016/07/19 19:49:30
Done.
|
| it->GetMatchingTypes(text, app_locale, matching_types); |
| } |
| } |
| @@ -698,7 +698,7 @@ void AutofillProfile::RecordAndLogUse() { |
| void AutofillProfile::GetSupportedTypes( |
| ServerFieldTypeSet* supported_types) const { |
| FormGroupList info = FormGroups(); |
| - for (const auto& it : info) { |
| + for (auto* it : info) { |
| it->GetSupportedTypes(supported_types); |
| } |
| } |