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

Unified Diff: chrome/browser/io_thread.cc

Issue 1210003: Add IPv6 probe support for Windows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
===================================================================
--- chrome/browser/io_thread.cc (revision 42509)
+++ chrome/browser/io_thread.cc (working copy)
@@ -40,11 +40,13 @@
global_host_resolver->GetAsHostResolverImpl();
if (host_resolver_impl != NULL) {
// (optionally) Use probe to decide if support is warranted.
+ bool use_ipv6_probe = true;
+#if defined(OS_WIN)
// Measure impact of probing to allow IPv6.
// Some users report confused OS handling of IPv6, leading to large
// latency. If we can show that IPv6 is not supported, then disabliing
- // it will work around such problems.
+ // it will work around such problems. This is the test of the probe.
const FieldTrial::Probability kDivisor = 100;
const FieldTrial::Probability kProbability = 50; // 50% probability.
FieldTrial* trial = new FieldTrial("IPv6_Probe", kDivisor);
@@ -52,7 +54,9 @@
kProbability);
trial->AppendGroup("_IPv6_probe_done",
FieldTrial::kAllRemainingProbability);
- bool use_ipv6_probe = (trial->group() != skip_group);
+ use_ipv6_probe = (trial->group() != skip_group);
+#endif
+
if (use_ipv6_probe)
host_resolver_impl->ProbeIPv6Support();
}
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698