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

Unified Diff: net/quic/quic_connection_logger.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_connection_logger.cc
diff --git a/net/quic/quic_connection_logger.cc b/net/quic/quic_connection_logger.cc
index 33fa4e0c68bde2d71c7a2ae6c8ed9a29c50e9370..d71c83acc0679fea3aad1abaa61c8f25325ecfc3 100644
--- a/net/quic/quic_connection_logger.cc
+++ b/net/quic/quic_connection_logger.cc
@@ -459,9 +459,10 @@ void QuicConnectionLogger::OnPacketReceived(const IPEndPoint& self_address,
const QuicEncryptedPacket& packet) {
if (local_address_from_self_.GetFamily() == ADDRESS_FAMILY_UNSPECIFIED) {
local_address_from_self_ = self_address;
- UMA_HISTOGRAM_ENUMERATION("Net.QuicSession.ConnectionTypeFromSelf",
- GetRealAddressFamily(self_address.address()),
- ADDRESS_FAMILY_LAST);
+ UMA_HISTOGRAM_ENUMERATION(
+ "Net.QuicSession.ConnectionTypeFromSelf",
+ GetRealAddressFamily(self_address.address().bytes()),
+ ADDRESS_FAMILY_LAST);
}
previous_received_packet_size_ = last_received_packet_size_;
@@ -660,7 +661,7 @@ void QuicConnectionLogger::OnCryptoHandshakeMessageReceived(
local_address_from_shlo_ = IPEndPoint(decoder.ip(), decoder.port());
UMA_HISTOGRAM_ENUMERATION(
"Net.QuicSession.ConnectionTypeFromPeer",
- GetRealAddressFamily(local_address_from_shlo_.address()),
+ GetRealAddressFamily(local_address_from_shlo_.address().bytes()),
ADDRESS_FAMILY_LAST);
}
}

Powered by Google App Engine
This is Rietveld 408576698