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

Unified Diff: net/dns/dns_config_service_win.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase for ChromeOS Created 4 years, 11 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 | « net/dns/dns_config_service_posix.cc ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_config_service_win.cc
diff --git a/net/dns/dns_config_service_win.cc b/net/dns/dns_config_service_win.cc
index 8c3192d90baf03570927839b39ab4998792cc49f..a08feb5a1bb3a04723dbb930e5675a60cd385293 100644
--- a/net/dns/dns_config_service_win.cc
+++ b/net/dns/dns_config_service_win.cc
@@ -281,10 +281,12 @@ HostsParseWinResult AddLocalhostEntries(DnsHosts* hosts) {
}
if (!have_ipv4 && (ipe.GetFamily() == ADDRESS_FAMILY_IPV4)) {
have_ipv4 = true;
- (*hosts)[DnsHostsKey(localname, ADDRESS_FAMILY_IPV4)] = ipe.address();
+ (*hosts)[DnsHostsKey(localname, ADDRESS_FAMILY_IPV4)] =
+ ipe.address().bytes();
} else if (!have_ipv6 && (ipe.GetFamily() == ADDRESS_FAMILY_IPV6)) {
have_ipv6 = true;
- (*hosts)[DnsHostsKey(localname, ADDRESS_FAMILY_IPV6)] = ipe.address();
+ (*hosts)[DnsHostsKey(localname, ADDRESS_FAMILY_IPV6)] =
+ ipe.address().bytes();
}
}
}
@@ -513,7 +515,7 @@ ConfigParseWinResult ConvertSettingsToDnsConfig(
IPEndPoint ipe;
if (ipe.FromSockAddr(address->Address.lpSockaddr,
address->Address.iSockaddrLength)) {
- if (IsStatelessDiscoveryAddress(ipe.address()))
+ if (IsStatelessDiscoveryAddress(ipe.address().bytes()))
continue;
// Override unset port.
if (!ipe.port())
« no previous file with comments | « net/dns/dns_config_service_posix.cc ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698