summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/dns_global.cc
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-23 02:45:11 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-23 02:45:11 +0000
commit0b48db4400f9a20de3c9f5bea099c1a3cbcf5015 (patch)
treec7149e77252a1fe846a87cf93c1b98a02fe53296 /chrome/browser/net/dns_global.cc
parent202dee0077b3756f5fad43c521ceec4f7349c91e (diff)
downloadchromium_src-0b48db4400f9a20de3c9f5bea099c1a3cbcf5015.zip
chromium_src-0b48db4400f9a20de3c9f5bea099c1a3cbcf5015.tar.gz
chromium_src-0b48db4400f9a20de3c9f5bea099c1a3cbcf5015.tar.bz2
Attempt to detect impact of disabling dns prefetching on transaction latency
This is also meant to exercise the field trial infrastructure. r=mbelshe Review URL: http://codereview.chromium.org/50084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_global.cc')
-rw-r--r--chrome/browser/net/dns_global.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/net/dns_global.cc b/chrome/browser/net/dns_global.cc
index c8df241..0dbba5d 100644
--- a/chrome/browser/net/dns_global.cc
+++ b/chrome/browser/net/dns_global.cc
@@ -81,11 +81,9 @@ void DnsPrefetchList(const NameList& hostnames) {
static void DnsPrefetchMotivatedList(
const NameList& hostnames,
DnsHostInfo::ResolutionMotivation motivation) {
- if (!dns_prefetch_enabled)
+ if (!dns_prefetch_enabled || NULL == dns_master)
return;
- DCHECK(NULL != dns_master);
- if (NULL != dns_master)
- dns_master->ResolveList(hostnames, motivation);
+ dns_master->ResolveList(hostnames, motivation);
}
// This API is used by the autocomplete popup box (where URLs are typed).