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

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

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/form_structure.cc
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
index 61bcd71a5ce86a6c760703fdb58dc3cbbdf2ed5c..5073ab0d4c1b714d46aa21ac7023646d1db7acc7 100644
--- a/components/autofill/core/browser/form_structure.cc
+++ b/components/autofill/core/browser/form_structure.cc
@@ -435,7 +435,7 @@ bool FormStructure::EncodeQueryRequest(
// Some badly formatted web sites repeat forms - detect that and encode only
// one form as returned data would be the same for all the repeated forms.
std::set<std::string> processed_forms;
- for (const auto& form : forms) {
+ for (auto* form : forms) {
std::string signature(form->FormSignature());
if (processed_forms.find(signature) != processed_forms.end())
continue;

Powered by Google App Engine
This is Rietveld 408576698