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

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: update 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..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);
}
}

Powered by Google App Engine
This is Rietveld 408576698