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

Unified Diff: components/bookmarks/browser/bookmark_index.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
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | components/bookmarks/browser/bookmark_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_index.cc
diff --git a/components/bookmarks/browser/bookmark_index.cc b/components/bookmarks/browser/bookmark_index.cc
index e953df849741b81469a789d4d287db58ac1b5d31..d4fbf32f6f145d9c327298af47817db7abd43b6f 100644
--- a/components/bookmarks/browser/bookmark_index.cc
+++ b/components/bookmarks/browser/bookmark_index.cc
@@ -56,8 +56,7 @@ base::string16 Normalize(const base::string16& text) {
// Sort functor for NodeTypedCountPairs. We sort in decreasing order of typed
// count so that the best matches will always be added to the results.
-struct NodeTypedCountPairSortFunctor
- : std::binary_function<NodeTypedCountPair, NodeTypedCountPair, bool> {
+struct NodeTypedCountPairSortFunctor {
bool operator()(const NodeTypedCountPair& a,
const NodeTypedCountPair& b) const {
return a.second > b.second;
@@ -65,8 +64,7 @@ struct NodeTypedCountPairSortFunctor
};
// Extract the const Node* stored in a BookmarkClient::NodeTypedCountPair.
-struct NodeTypedCountPairExtractNodeFunctor
- : std::unary_function<NodeTypedCountPair, const BookmarkNode*> {
+struct NodeTypedCountPairExtractNodeFunctor {
const BookmarkNode* operator()(const NodeTypedCountPair& pair) const {
return pair.first;
}
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | components/bookmarks/browser/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698