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

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

Issue 118100: Avoid doing concurrent DNS resolves of the same hostname (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get compiling on mac Created 11 years, 6 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: chrome/browser/net/dns_global.cc
===================================================================
--- chrome/browser/net/dns_global.cc (revision 18213)
+++ chrome/browser/net/dns_global.cc (working copy)
@@ -429,14 +429,11 @@
net::HostResolver* GetGlobalHostResolver() {
// Called from UI thread.
if (!global_host_resolver) {
- // TODO(eroman):
-#if 0
static const size_t kMaxHostCacheEntries = 100;
static const size_t kHostCacheExpirationSeconds = 60; // 1 minute.
global_host_resolver = new net::HostResolver(
kMaxHostCacheEntries, kHostCacheExpirationSeconds * 1000);
-#endif
}
return global_host_resolver;
}
@@ -444,8 +441,6 @@
void FreeGlobalHostResolver() {
if (global_host_resolver) {
// Called from IO thread.
- DCHECK_EQ(MessageLoop::current(),
- g_browser_process->io_thread()->message_loop());
delete global_host_resolver;
global_host_resolver = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698