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

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: 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/quic/quic_connection.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection_logger.cc
diff --git a/net/quic/quic_connection_logger.cc b/net/quic/quic_connection_logger.cc
index 1cc1718d0533f2a372d80547e64958524ba7b1fb..3f329bbb9ca7f194b70003cbdeb95f593156b7f8 100644
--- a/net/quic/quic_connection_logger.cc
+++ b/net/quic/quic_connection_logger.cc
@@ -458,9 +458,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_;
@@ -659,7 +660,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);
}
}
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698