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

Unified Diff: net/base/host_cache.cc

Issue 10831277: [net] Change factory methods for HostResolver and HostCache to return a scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add ChromeBrowserFieldTrials::AsyncDnsFieldTrial Created 8 years, 4 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: net/base/host_cache.cc
diff --git a/net/base/host_cache.cc b/net/base/host_cache.cc
index ae0169cf3b58b84598d8e5bbd73303ae5de0c68a..9aa5b3dab813f97aaa4850fac9eba38cd081949d 100644
--- a/net/base/host_cache.cc
+++ b/net/base/host_cache.cc
@@ -71,9 +71,9 @@ const HostCache::EntryMap& HostCache::entries() const {
}
// static
-HostCache* HostCache::CreateDefaultCache() {
+scoped_ptr<HostCache> HostCache::CreateDefaultCache() {
static const size_t kMaxHostCacheEntries = 100;
- return new HostCache(kMaxHostCacheEntries);
+ return make_scoped_ptr(new HostCache(kMaxHostCacheEntries));
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698