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

Unified Diff: components/cronet/stale_host_resolver.cc

Issue 2711153007: Add Cronet experimental option to disable ipv6 (Closed)
Patch Set: Created 3 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: components/cronet/stale_host_resolver.cc
diff --git a/components/cronet/stale_host_resolver.cc b/components/cronet/stale_host_resolver.cc
index 2d4c0779730c8b35e70c3ecd7d4f19a9e165bcfd..7687bd330de24b05d707b50d85719230825cf008 100644
--- a/components/cronet/stale_host_resolver.cc
+++ b/components/cronet/stale_host_resolver.cc
@@ -10,6 +10,7 @@
#include "base/stl_util.h"
#include "base/timer/timer.h"
#include "base/values.h"
+#include "net/base/address_family.h"
#include "net/base/net_errors.h"
#include "net/dns/dns_util.h"
#include "net/dns/host_resolver_impl.h"
@@ -397,4 +398,13 @@ std::unique_ptr<base::Value> StaleHostResolver::GetDnsConfigAsValue() const {
return inner_resolver_->GetDnsConfigAsValue();
}
+void StaleHostResolver::SetDefaultAddressFamily(
xunjieli 2017/02/27 15:37:39 Suggest removing the overrides and relying on the
mgersh 2017/02/28 18:29:57 Done.
+ net::AddressFamily address_family) {
+ inner_resolver_->SetDefaultAddressFamily(address_family);
+}
+
+net::AddressFamily StaleHostResolver::GetDefaultAddressFamily() const {
+ return inner_resolver_->GetDefaultAddressFamily();
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698