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

Unified Diff: chrome/browser/net/dns_global.cc

Issue 149511: Refactorings surrounding HostResolver:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Merge in socks5_client_socket_unittest.cc Created 11 years, 5 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 | « chrome/browser/browser_unittest.cc ('k') | chrome/browser/net/dns_master_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/dns_global.cc
===================================================================
--- chrome/browser/net/dns_global.cc (revision 20760)
+++ chrome/browser/net/dns_global.cc (working copy)
@@ -476,11 +476,7 @@
net::HostResolver* GetGlobalHostResolver() {
// Called from UI thread.
if (!global_host_resolver) {
- static const size_t kMaxHostCacheEntries = 100;
- static const size_t kHostCacheExpirationSeconds = 60; // 1 minute.
-
- global_host_resolver = new net::HostResolver(
- kMaxHostCacheEntries, kHostCacheExpirationSeconds * 1000);
+ global_host_resolver = net::CreateSystemHostResolver();
}
return global_host_resolver;
}
« no previous file with comments | « chrome/browser/browser_unittest.cc ('k') | chrome/browser/net/dns_master_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698