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

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: 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/form_structure.cc
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
index 6379bd70a6c8c95e35e32407a2e8b27775185c4b..02f1bf250d6426b2ace49b3e2226ebf21ebbc22b 100644
--- a/components/autofill/core/browser/form_structure.cc
+++ b/components/autofill/core/browser/form_structure.cc
@@ -432,7 +432,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) {
vabr (Chromium) 2016/07/19 07:54:09 optional: Could we make this "const auto*" to clar
vmpstr 2016/07/19 19:49:31 Done.
std::string signature(form->FormSignature());
if (processed_forms.find(signature) != processed_forms.end())
continue;

Powered by Google App Engine
This is Rietveld 408576698