summaryrefslogtreecommitdiffstats
path: root/net/spdy
diff options
context:
space:
mode:
Diffstat (limited to 'net/spdy')
-rw-r--r--net/spdy/spdy_session.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index c819ee8..c40ae84 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -1231,15 +1231,22 @@ bool SpdySession::GetLoadTimingInfo(SpdyStreamId stream_id,
}
int SpdySession::GetPeerAddress(IPEndPoint* address) const {
- if (!connection_->socket())
+ UMA_HISTOGRAM_BOOLEAN("Net.SpdySessionGetPeerAddressNotConnected",
+ !connection_->socket());
+
+ if (!connection_->socket()) {
return ERR_SOCKET_NOT_CONNECTED;
+ }
return connection_->socket()->GetPeerAddress(address);
}
int SpdySession::GetLocalAddress(IPEndPoint* address) const {
- if (!connection_->socket())
+ UMA_HISTOGRAM_BOOLEAN("Net.SpdySessionGetPeerAddressNotConnected",
+ !connection_->socket());
+ if (!connection_->socket()) {
return ERR_SOCKET_NOT_CONNECTED;
+ }
return connection_->socket()->GetLocalAddress(address);
}