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

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

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 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_external_delegate.cc
diff --git a/components/autofill/core/browser/autofill_external_delegate.cc b/components/autofill/core/browser/autofill_external_delegate.cc
index cf22acfc52995475a58904cafd7cad69b8b6831b..fc526b6581e4bc92ec90b208ed1e2da802585d87 100644
--- a/components/autofill/core/browser/autofill_external_delegate.cc
+++ b/components/autofill/core/browser/autofill_external_delegate.cc
@@ -343,12 +343,12 @@ void AutofillExternalDelegate::InsertDataListValues(
std::set<base::string16> data_list_set(data_list_values_.begin(),
data_list_values_.end());
suggestions->erase(
- std::remove_if(suggestions->begin(), suggestions->end(),
- [&data_list_set](const Suggestion& suggestion) {
- return suggestion.frontend_id ==
- POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY &&
- ContainsKey(data_list_set, suggestion.value);
- }),
+ std::remove_if(
+ suggestions->begin(), suggestions->end(),
+ [&data_list_set](const Suggestion& suggestion) {
+ return suggestion.frontend_id == POPUP_ITEM_ID_AUTOCOMPLETE_ENTRY &&
+ base::ContainsKey(data_list_set, suggestion.value);
+ }),
suggestions->end());
#if !defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698