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

Unified Diff: net/quic/quic_socket_address_coder.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/quic/quic_socket_address_coder.cc
diff --git a/net/quic/quic_socket_address_coder.cc b/net/quic/quic_socket_address_coder.cc
index bd28353e8640fc19d8cd6fd6169d8b7ee635b21b..844ac3452b9de8b35717caa32a30d077490c4dd0 100644
--- a/net/quic/quic_socket_address_coder.cc
+++ b/net/quic/quic_socket_address_coder.cc
@@ -41,7 +41,7 @@ string QuicSocketAddressCoder::Encode() const {
}
serialized.append(reinterpret_cast<const char*>(&address_family),
sizeof(address_family));
- serialized.append(IPAddressToPackedString(address_.address()));
+ serialized.append(IPAddressToPackedString(address_.address().bytes()));
uint16_t port = address_.port();
serialized.append(reinterpret_cast<const char*>(&port), sizeof(port));
return serialized;

Powered by Google App Engine
This is Rietveld 408576698