Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: components/autofill/core/browser/autofill_profile.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..93b155530f28e092b925939028102f906b01b409 100644
--- a/components/autofill/core/browser/autofill_profile.cc
+++ b/components/autofill/core/browser/autofill_profile.cc
@@ -253,8 +253,8 @@ void AutofillProfile::GetMatchingTypes(
const std::string& app_locale,
ServerFieldTypeSet* matching_types) const {
FormGroupList info = FormGroups();
- for (const auto& it : info) {
- it->GetMatchingTypes(text, app_locale, matching_types);
+ for (const auto* form_group : info) {
+ form_group->GetMatchingTypes(text, app_locale, matching_types);
}
}
@@ -698,8 +698,8 @@ void AutofillProfile::RecordAndLogUse() {
void AutofillProfile::GetSupportedTypes(
ServerFieldTypeSet* supported_types) const {
FormGroupList info = FormGroups();
- for (const auto& it : info) {
- it->GetSupportedTypes(supported_types);
+ for (const auto* form_group : info) {
+ form_group->GetSupportedTypes(supported_types);
}
}
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698