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

Unified Diff: components/omnibox/browser/url_index_private_data.h

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/omnibox/browser/url_index_private_data.h
diff --git a/components/omnibox/browser/url_index_private_data.h b/components/omnibox/browser/url_index_private_data.h
index a7348cca5d73db11d34860c11cbebf75327b42fb..0a327e5b24c9eb782164fc9312908bd069eebfe3 100644
--- a/components/omnibox/browser/url_index_private_data.h
+++ b/components/omnibox/browser/url_index_private_data.h
@@ -198,7 +198,7 @@ class URLIndexPrivateData
// A helper class which performs the final filter on each candidate
// history URL match, inserting accepted matches into |scored_matches_|.
- class AddHistoryMatch : public std::unary_function<HistoryID, void> {
+ class AddHistoryMatch {
public:
AddHistoryMatch(bookmarks::BookmarkModel* bookmark_model,
TemplateURLService* template_url_service,
@@ -230,8 +230,7 @@ class URLIndexPrivateData
// A helper predicate class used to filter excess history items when the
// candidate results set is too large.
- class HistoryItemFactorGreater
- : public std::binary_function<HistoryID, HistoryID, void> {
+ class HistoryItemFactorGreater {
public:
explicit HistoryItemFactorGreater(const HistoryInfoMap& history_info_map);
~HistoryItemFactorGreater();
« no previous file with comments | « components/omnibox/browser/history_quick_provider_unittest.cc ('k') | components/variations/entropy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698