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

Unified Diff: net/dns/mojo_host_type_converters.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback eroman 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
Index: net/dns/mojo_host_type_converters.cc
diff --git a/net/dns/mojo_host_type_converters.cc b/net/dns/mojo_host_type_converters.cc
index 07dfe4df23f429c0a4ff7d0a93f870422c3a3aec..ceb371620c7a7ae4efcdfa94ffa77a87b760d46f 100644
--- a/net/dns/mojo_host_type_converters.cc
+++ b/net/dns/mojo_host_type_converters.cc
@@ -77,7 +77,7 @@ TypeConverter<net::interfaces::AddressListPtr, net::AddressList>::Convert(
for (const auto& endpoint : obj) {
net::interfaces::IPEndPointPtr ep(net::interfaces::IPEndPoint::New());
ep->port = endpoint.port();
- ep->address = mojo::Array<uint8_t>::From(endpoint.address());
+ ep->address = mojo::Array<uint8_t>::From(endpoint.address().bytes());
result->addresses.push_back(std::move(ep));
}
return result;

Powered by Google App Engine
This is Rietveld 408576698