summaryrefslogtreecommitdiffstats
path: root/content/browser/appcache
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-03-09 11:38:19 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-09 19:41:09 +0000
commit3abe3303bcbb2b24d7c21228f88114337347b674 (patch)
tree8c81c0ada48e93499286fc435f8a30cd8a2ef7e7 /content/browser/appcache
parentb2bf6ebb42d71afea2b6ef3834a40724fa2fb3f6 (diff)
downloadchromium_src-3abe3303bcbb2b24d7c21228f88114337347b674.zip
chromium_src-3abe3303bcbb2b24d7c21228f88114337347b674.tar.gz
chromium_src-3abe3303bcbb2b24d7c21228f88114337347b674.tar.bz2
Remove uses of std::unary_function and std::binary_function.
This patch removes unary and binary function, since those are deprecated in C++11. They also only provide two typedefs, so this cleans up some code. In rare cases where the typedefs are actually required, it's easier to just provide the typedef directly instead of deriving from one of these functions. BUG=593407 Review URL: https://codereview.chromium.org/1420333006 Cr-Commit-Position: refs/heads/master@{#380179}
Diffstat (limited to 'content/browser/appcache')
-rw-r--r--content/browser/appcache/appcache_storage_impl.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/content/browser/appcache/appcache_storage_impl.cc b/content/browser/appcache/appcache_storage_impl.cc
index b144eb6..2a255ed 100644
--- a/content/browser/appcache/appcache_storage_impl.cc
+++ b/content/browser/appcache/appcache_storage_impl.cc
@@ -837,11 +837,7 @@ void AppCacheStorageImpl::StoreGroupAndCacheTask::CancelCompletion() {
// Helpers for FindMainResponseTask::Run()
namespace {
-class SortByCachePreference
- : public std::binary_function<
- AppCacheDatabase::EntryRecord,
- AppCacheDatabase::EntryRecord,
- bool> {
+class SortByCachePreference {
public:
SortByCachePreference(int64_t preferred_id,
const std::set<int64_t>& in_use_ids)