diff options
Diffstat (limited to 'chromium/content/browser/appcache/appcache_service_impl.cc')
-rw-r--r-- | chromium/content/browser/appcache/appcache_service_impl.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/content/browser/appcache/appcache_service_impl.cc b/chromium/content/browser/appcache/appcache_service_impl.cc index 2fc5d949d2e..537ca8e81e6 100644 --- a/chromium/content/browser/appcache/appcache_service_impl.cc +++ b/chromium/content/browser/appcache/appcache_service_impl.cc @@ -412,9 +412,8 @@ AppCacheServiceImpl::AppCacheServiceImpl( AppCacheServiceImpl::~AppCacheServiceImpl() { DCHECK(backends_.empty()); - std::for_each(pending_helpers_.begin(), - pending_helpers_.end(), - std::mem_fun(&AsyncHelper::Cancel)); + for (auto* helper : pending_helpers_) + helper->Cancel(); STLDeleteElements(&pending_helpers_); if (quota_client_) quota_client_->NotifyAppCacheDestroyed(); |