Index: net/udp/udp_socket_win.cc |
diff --git a/net/udp/udp_socket_win.cc b/net/udp/udp_socket_win.cc |
index b53b4cb204dc630020e522a41f47d69d543d9e22..541b0251721aefc7359f9195c77cfc2c1de95ba1 100644 |
--- a/net/udp/udp_socket_win.cc |
+++ b/net/udp/udp_socket_win.cc |
@@ -700,7 +700,7 @@ void UDPSocketWin::LogRead(int result, |
return; |
} |
- if (net_log_.IsLogging()) { |
+ if (net_log_.GetCaptureMode().enabled()) { |
net_log_.AddEvent( |
NetLog::TYPE_UDP_BYTES_RECEIVED, |
CreateNetLogUDPDataTranferCallback(result, bytes, address)); |
@@ -717,7 +717,7 @@ void UDPSocketWin::LogWrite(int result, |
return; |
} |
- if (net_log_.IsLogging()) { |
+ if (net_log_.GetCaptureMode().enabled()) { |
net_log_.AddEvent( |
NetLog::TYPE_UDP_BYTES_SENT, |
CreateNetLogUDPDataTranferCallback(result, bytes, address)); |