Index: net/socket/transport_client_socket_pool.cc |
diff --git a/net/socket/transport_client_socket_pool.cc b/net/socket/transport_client_socket_pool.cc |
index eac2868bde74156109d028baa8f7c696c69cfae7..5263e7000c991146e864cc6c5429c351ceb7add5 100644 |
--- a/net/socket/transport_client_socket_pool.cc |
+++ b/net/socket/transport_client_socket_pool.cc |
@@ -481,7 +481,7 @@ int TransportClientSocketPool::RequestSocket( |
void TransportClientSocketPool::NetLogTcpClientSocketPoolRequestedSocket( |
const BoundNetLog& net_log, |
const scoped_refptr<TransportSocketParams>* casted_params) { |
- if (net_log.IsLogging()) { |
+ if (net_log.GetCaptureMode().enabled()) { |
// TODO(eroman): Split out the host and port parameters. |
net_log.AddEvent( |
NetLog::TYPE_TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKET, |
@@ -498,7 +498,7 @@ void TransportClientSocketPool::RequestSockets( |
const scoped_refptr<TransportSocketParams>* casted_params = |
static_cast<const scoped_refptr<TransportSocketParams>*>(params); |
- if (net_log.IsLogging()) { |
+ if (net_log.GetCaptureMode().enabled()) { |
// TODO(eroman): Split out the host and port parameters. |
net_log.AddEvent( |
NetLog::TYPE_TCP_CLIENT_SOCKET_POOL_REQUESTED_SOCKETS, |