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

Unified Diff: content/browser/appcache/appcache_backend_impl.h

Issue 2435863004: Remove stl_util's deletion function use from content/. (Closed)
Patch Set: minus service worker Created 4 years, 2 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 | « no previous file | content/browser/appcache/appcache_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_backend_impl.h
diff --git a/content/browser/appcache/appcache_backend_impl.h b/content/browser/appcache/appcache_backend_impl.h
index 4585b789038211e31b38e592721bf042f7f0ec3f..e7f9b84eb288987c13a37f758f7c0273c6a08d51 100644
--- a/content/browser/appcache/appcache_backend_impl.h
+++ b/content/browser/appcache/appcache_backend_impl.h
@@ -53,11 +53,11 @@ class CONTENT_EXPORT AppCacheBackendImpl {
// Returns a pointer to a registered host. The backend retains ownership.
AppCacheHost* GetHost(int host_id) {
- HostMap::iterator it = hosts_.find(host_id);
- return (it != hosts_.end()) ? (it->second) : NULL;
+ auto it = hosts_.find(host_id);
+ return (it != hosts_.end()) ? (it->second.get()) : nullptr;
}
- typedef base::hash_map<int, AppCacheHost*> HostMap;
+ typedef base::hash_map<int, std::unique_ptr<AppCacheHost>> HostMap;
const HostMap& hosts() { return hosts_; }
// Methods to support cross site navigations. Hosts are transferred
@@ -71,6 +71,8 @@ class CONTENT_EXPORT AppCacheBackendImpl {
AppCacheFrontend* frontend_;
int process_id_;
HostMap hosts_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppCacheBackendImpl);
};
} // namespace
« no previous file with comments | « no previous file | content/browser/appcache/appcache_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698