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

Unified Diff: storage/browser/quota/quota_task.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
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/quota_task.cc
diff --git a/storage/browser/quota/quota_task.cc b/storage/browser/quota/quota_task.cc
index a0bda596a3ac833fdf82018456b578d3930620bc..55ade2b2bd1a4404f582eaa5f2c712aa439db9d0 100644
--- a/storage/browser/quota/quota_task.cc
+++ b/storage/browser/quota/quota_task.cc
@@ -58,9 +58,8 @@ void QuotaTask::DeleteSoon() {
// QuotaTaskObserver -------------------------------------------------------
QuotaTaskObserver::~QuotaTaskObserver() {
- std::for_each(running_quota_tasks_.begin(),
- running_quota_tasks_.end(),
- std::mem_fun(&QuotaTask::Abort));
+ for (auto* task : running_quota_tasks_)
+ task->Abort();
}
QuotaTaskObserver::QuotaTaskObserver() {
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698