diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-07 07:04:05 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-07 07:04:05 +0000 |
commit | 841240f4b2ab61db1610a45487114ad8d6a898af (patch) | |
tree | 0226c2d620d72ff22356e8706d9233bae7f7d215 /chrome/browser/net | |
parent | 68abc22003015ced6e49012be439c27b81232432 (diff) | |
download | chromium_src-841240f4b2ab61db1610a45487114ad8d6a898af.zip chromium_src-841240f4b2ab61db1610a45487114ad8d6a898af.tar.gz chromium_src-841240f4b2ab61db1610a45487114ad8d6a898af.tar.bz2 |
Revert 38323 - Add IPv6 probing support, and disable IPv6 resolution when it is useless
I've added minimal probing to check if IPv6 is at all possible, and when
it is not, then we disable IPv6 resolution.
I've also added histograms and A/B test support to evaluate the impact of
this change.
r=wtc,eroman
Review URL: http://codereview.chromium.org/579010
TBR=jar@chromium.org
Review URL: http://codereview.chromium.org/582011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/dns_host_info.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/chrome/browser/net/dns_host_info.cc b/chrome/browser/net/dns_host_info.cc index 45e088b..8946f7f 100644 --- a/chrome/browser/net/dns_host_info.cc +++ b/chrome/browser/net/dns_host_info.cc @@ -9,7 +9,6 @@ #include <algorithm> #include <string> -#include "base/field_trial.h" #include "base/format_macros.h" #include "base/histogram.h" #include "base/logging.h" @@ -121,18 +120,7 @@ void DnsHostInfo::SetFoundState() { state_ = FOUND; resolve_duration_ = GetDuration(); if (kMaxNonNetworkDnsLookupDuration <= resolve_duration_) { - UMA_HISTOGRAM_CUSTOM_TIMES("DNS.PrefetchResolution", resolve_duration_, - kMaxNonNetworkDnsLookupDuration, TimeDelta::FromMinutes(15), 100); - - static bool use_ipv6_histogram(FieldTrialList::Find("IPv6_Probe") && - !FieldTrialList::Find("IPv6_Probe")->group_name().empty()); - if (use_ipv6_histogram) { - UMA_HISTOGRAM_CUSTOM_TIMES( - FieldTrial::MakeName("DNS.PrefetchResolution", "IPv6_Probe"), - resolve_duration_, kMaxNonNetworkDnsLookupDuration, - TimeDelta::FromMinutes(15), 100); - } - + UMA_HISTOGRAM_LONG_TIMES("DNS.PrefetchFoundNameL", resolve_duration_); // Record potential beneficial time, and maybe we'll get a cache hit. // We keep the maximum, as the warming we did earlier may still be // helping with a cache upstream in DNS resolution. |