Commit 200db42d authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Fix typo in function name (Tranfer -> Transfer).

Change-Id: Ie254d89ee283713459dff7c611e2b160ecd62b9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707952
Commit-Queue: Eric Roman <eroman@chromium.org>
Commit-Queue: David Benjamin <davidben@chromium.org>
Auto-Submit: Eric Roman <eroman@chromium.org>
Reviewed-by: default avatarDavid Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678896}
parent a63bcb03
......@@ -15,10 +15,10 @@ namespace net {
namespace {
base::Value NetLogUDPDataTranferParams(int byte_count,
const char* bytes,
const IPEndPoint* address,
NetLogCaptureMode capture_mode) {
base::Value NetLogUDPDataTransferParams(int byte_count,
const char* bytes,
const IPEndPoint* address,
NetLogCaptureMode capture_mode) {
base::DictionaryValue dict;
dict.SetInteger("byte_count", byte_count);
if (NetLogCaptureIncludesSocketBytes(capture_mode))
......@@ -40,14 +40,15 @@ base::Value NetLogUDPConnectParams(
} // namespace
void NetLogUDPDataTranfer(const NetLogWithSource& net_log,
NetLogEventType type,
int byte_count,
const char* bytes,
const IPEndPoint* address) {
void NetLogUDPDataTransfer(const NetLogWithSource& net_log,
NetLogEventType type,
int byte_count,
const char* bytes,
const IPEndPoint* address) {
DCHECK(bytes);
net_log.AddEvent(type, [&](NetLogCaptureMode capture_mode) {
return NetLogUDPDataTranferParams(byte_count, bytes, address, capture_mode);
return NetLogUDPDataTransferParams(byte_count, bytes, address,
capture_mode);
});
}
......
......@@ -20,11 +20,11 @@ class IPEndPoint;
// Emits a NetLog event with parameters describing a UDP receive/send event.
// |bytes| are only logged when byte logging is enabled. |address| may be
// nullptr.
void NetLogUDPDataTranfer(const NetLogWithSource& net_log,
NetLogEventType type,
int byte_count,
const char* bytes,
const IPEndPoint* address);
void NetLogUDPDataTransfer(const NetLogWithSource& net_log,
NetLogEventType type,
int byte_count,
const char* bytes,
const IPEndPoint* address);
// Creates NetLog parameters describing a UDP connect event.
base::Value CreateNetLogUDPConnectParams(
......
......@@ -764,8 +764,8 @@ void UDPSocketPosix::LogRead(int result,
IPEndPoint address;
bool is_address_valid = address.FromSockAddr(addr, addr_len);
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, is_address_valid ? &address : nullptr);
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, is_address_valid ? &address : nullptr);
}
received_activity_monitor_.Increment(result);
......@@ -793,8 +793,8 @@ void UDPSocketPosix::LogWrite(int result,
}
if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address);
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address);
}
sent_activity_monitor_.Increment(result);
......
......@@ -742,8 +742,8 @@ void UDPSocketWin::LogRead(int result,
}
if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, address);
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, address);
}
NetworkActivityMonitor::GetInstance()->IncrementBytesReceived(result);
......@@ -758,8 +758,8 @@ void UDPSocketWin::LogWrite(int result,
}
if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address);
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address);
}
NetworkActivityMonitor::GetInstance()->IncrementBytesSent(result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment