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

Unified Diff: components/autofill/core/browser/autofill-inl.h

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 years, 2 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-inl.h
diff --git a/components/autofill/core/browser/autofill-inl.h b/components/autofill/core/browser/autofill-inl.h
index 33e6a880d08b014140c415965e9ac416abd76dd6..2fa13ebfe5b3725694c56cf490e3bb3ffeedef8c 100644
--- a/components/autofill/core/browser/autofill-inl.h
+++ b/components/autofill/core/browser/autofill-inl.h
@@ -22,6 +22,10 @@ class FormGroupMatchesByCompareFunctor {
return form_group.Compare(form_group_) == 0;
}
+ bool operator()(const std::unique_ptr<T>& form_group) {
+ return form_group->Compare(form_group_) == 0;
+ }
+
private:
const T& form_group_;
};

Powered by Google App Engine
This is Rietveld 408576698