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

Unified Diff: net/quic/quic_address_mismatch.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android 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_address_mismatch.cc
diff --git a/net/quic/quic_address_mismatch.cc b/net/quic/quic_address_mismatch.cc
index 96aaef410309446dab6109961ace5e290014c705..f911b507726e1eb584c245005d96b7b46d8acc43 100644
--- a/net/quic/quic_address_mismatch.cc
+++ b/net/quic/quic_address_mismatch.cc
@@ -11,14 +11,15 @@ namespace net {
int GetAddressMismatch(const IPEndPoint& first_address,
const IPEndPoint& second_address) {
- if (first_address.address().empty() || second_address.address().empty()) {
+ if (first_address.address_number().empty() ||
+ second_address.address_number().empty()) {
return -1;
}
- IPAddressNumber first_ip_address = first_address.address();
+ IPAddressNumber first_ip_address = first_address.address_number();
if (IsIPv4Mapped(first_ip_address)) {
first_ip_address = ConvertIPv4MappedToIPv4(first_ip_address);
}
- IPAddressNumber second_ip_address = second_address.address();
+ IPAddressNumber second_ip_address = second_address.address_number();
if (IsIPv4Mapped(second_ip_address)) {
second_ip_address = ConvertIPv4MappedToIPv4(second_ip_address);
}

Powered by Google App Engine
This is Rietveld 408576698