Index: net/udp/udp_socket_win.cc |
diff --git a/net/udp/udp_socket_win.cc b/net/udp/udp_socket_win.cc |
index 5d6fa34677899642caf832511229a92451847795..ef5cfad00940fc894ff01a18d23e1eb9677f3935 100644 |
--- a/net/udp/udp_socket_win.cc |
+++ b/net/udp/udp_socket_win.cc |
@@ -681,7 +681,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)); |
@@ -698,7 +698,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)); |