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

Unified Diff: components/bookmarks/browser/bookmark_model.cc

Issue 1420333006: Remove uses of std::unary_function and std::binary_function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/bookmarks/browser/bookmark_model.cc
diff --git a/components/bookmarks/browser/bookmark_model.cc b/components/bookmarks/browser/bookmark_model.cc
index 3b502760c0fe2b0cc00fdc89dabc4b4822cbe791..51d0f50df21a33f4cce48e86b74c1f7dbe01e3e5 100644
--- a/components/bookmarks/browser/bookmark_model.cc
+++ b/components/bookmarks/browser/bookmark_model.cc
@@ -47,10 +47,7 @@ BookmarkPermanentNode* AsMutable(const BookmarkPermanentNode* node) {
// Comparator used when sorting permanent nodes. Nodes that are initially
// visible are sorted before nodes that are initially hidden.
-class VisibilityComparator
- : public std::binary_function<const BookmarkPermanentNode*,
- const BookmarkPermanentNode*,
- bool> {
+class VisibilityComparator {
public:
explicit VisibilityComparator(BookmarkClient* client) : client_(client) {}
@@ -68,9 +65,7 @@ class VisibilityComparator
// Comparator used when sorting bookmarks. Folders are sorted first, then
// bookmarks.
-class SortComparator : public std::binary_function<const BookmarkNode*,
- const BookmarkNode*,
- bool> {
+class SortComparator {
public:
explicit SortComparator(icu::Collator* collator) : collator_(collator) {}
« no previous file with comments | « components/bookmarks/browser/bookmark_index.cc ('k') | components/omnibox/browser/history_quick_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698