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

Unified Diff: content/browser/appcache/appcache_storage_impl.cc

Issue 1782963002: Remove std::mem_fun uses. (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: content/browser/appcache/appcache_storage_impl.cc
diff --git a/content/browser/appcache/appcache_storage_impl.cc b/content/browser/appcache/appcache_storage_impl.cc
index 2a255edc2d4b120ab2f8ef4fe9bd5ff58b98a2b6..fbb7290553acdcf7dda2336c92dbd316310edf2e 100644
--- a/content/browser/appcache/appcache_storage_impl.cc
+++ b/content/browser/appcache/appcache_storage_impl.cc
@@ -1419,12 +1419,10 @@ AppCacheStorageImpl::AppCacheStorageImpl(AppCacheServiceImpl* service)
}
AppCacheStorageImpl::~AppCacheStorageImpl() {
- std::for_each(pending_quota_queries_.begin(),
- pending_quota_queries_.end(),
- std::mem_fun(&DatabaseTask::CancelCompletion));
- std::for_each(scheduled_database_tasks_.begin(),
- scheduled_database_tasks_.end(),
- std::mem_fun(&DatabaseTask::CancelCompletion));
+ for (auto* task : pending_quota_queries_)
+ task->CancelCompletion();
+ for (auto* task : scheduled_database_tasks_)
+ task->CancelCompletion();
if (database_ &&
!db_thread_->PostTask(

Powered by Google App Engine
This is Rietveld 408576698