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

Unified Diff: net/base/host_resolver_impl.cc

Issue 660073: Revert 39996 - Refine IPv6 probe to require that the client has an IPv6 addre... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 10 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: net/base/host_resolver_impl.cc
===================================================================
--- net/base/host_resolver_impl.cc (revision 39997)
+++ net/base/host_resolver_impl.cc (working copy)
@@ -20,7 +20,6 @@
#include "net/base/host_resolver_proc.h"
#include "net/base/load_log.h"
#include "net/base/net_errors.h"
-#include "net/base/net_util.h"
#include "net/base/network_change_notifier.h"
#if defined(OS_WIN)
@@ -576,8 +575,7 @@
resolver_proc_(resolver_proc),
default_address_family_(ADDRESS_FAMILY_UNSPECIFIED),
shutdown_(false),
- network_change_notifier_(network_change_notifier),
- ipv6_probe_monitoring_(false) {
+ network_change_notifier_(network_change_notifier) {
DCHECK_GT(max_jobs, 0u);
// It is cumbersome to expose all of the constraints in the constructor,
@@ -738,17 +736,6 @@
observers_.erase(it);
}
-void HostResolverImpl::SetDefaultAddressFamily(AddressFamily address_family) {
- ipv6_probe_monitoring_ = false;
- default_address_family_ = address_family;
-}
-
-void HostResolverImpl::ProbeIPv6Support() {
- DCHECK(!ipv6_probe_monitoring_);
- ipv6_probe_monitoring_ = true;
- OnIPAddressChanged(); // Give initial setup call.
-}
-
void HostResolverImpl::Shutdown() {
shutdown_ = true;
@@ -990,14 +977,6 @@
void HostResolverImpl::OnIPAddressChanged() {
if (cache_.get())
cache_->clear();
- if (ipv6_probe_monitoring_) {
- bool support = IPv6Supported();
- default_address_family_ = support ? ADDRESS_FAMILY_UNSPECIFIED
- : ADDRESS_FAMILY_IPV4;
- LOG(INFO) << "IPv6Probe forced AddressFamily setting to "
- << (support ? "ADDRESS_FAMILY_UNSPECIFIED"
- : "ADDRESS_FAMILY_IPV4");
- }
}
// static

Powered by Google App Engine
This is Rietveld 408576698