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

Unified Diff: ios/chrome/browser/autofill/autofill_agent.mm

Issue 2609703002: Remove ScopedVector from autofill. (Closed)
Patch Set: drop the using Created 3 years, 12 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: ios/chrome/browser/autofill/autofill_agent.mm
diff --git a/ios/chrome/browser/autofill/autofill_agent.mm b/ios/chrome/browser/autofill/autofill_agent.mm
index b716c4a624d26cdc8bd3b346267cb29c637f92a7..ea1e25a9daf8e5aa85158c7424744cbdab809119 100644
--- a/ios/chrome/browser/autofill/autofill_agent.mm
+++ b/ios/chrome/browser/autofill/autofill_agent.mm
@@ -851,7 +851,7 @@ void GetFormAndField(autofill::FormData* form,
// |predictionData| will take ownership below.
base::DictionaryValue* formJSONData = new base::DictionaryValue;
autofill::FormData formData = form->ToFormData();
- for (const autofill::AutofillField* field : *form) {
+ for (const auto& field : *form) {
autofill::AutofillType type(field->Type());
if (type.IsUnknown())
continue;

Powered by Google App Engine
This is Rietveld 408576698