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,7 +15,7 @@ namespace net {
namespace {
base::Value NetLogUDPDataTranferParams(int byte_count,
base::Value NetLogUDPDataTransferParams(int byte_count,
const char* bytes,
const IPEndPoint* address,
NetLogCaptureMode capture_mode) {
......@@ -40,14 +40,15 @@ base::Value NetLogUDPConnectParams(
} // namespace
void NetLogUDPDataTranfer(const NetLogWithSource& net_log,
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,7 +20,7 @@ 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,
void NetLogUDPDataTransfer(const NetLogWithSource& net_log,
NetLogEventType type,
int byte_count,
const char* bytes,
......
......@@ -764,7 +764,7 @@ void UDPSocketPosix::LogRead(int result,
IPEndPoint address;
bool is_address_valid = address.FromSockAddr(addr, addr_len);
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, is_address_valid ? &address : nullptr);
}
......@@ -793,7 +793,7 @@ void UDPSocketPosix::LogWrite(int result,
}
if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address);
}
......
......@@ -742,7 +742,7 @@ void UDPSocketWin::LogRead(int result,
}
if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_RECEIVED, result,
bytes, address);
}
......@@ -758,7 +758,7 @@ void UDPSocketWin::LogWrite(int result,
}
if (net_log_.IsCapturing()) {
NetLogUDPDataTranfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
NetLogUDPDataTransfer(net_log_, NetLogEventType::UDP_BYTES_SENT, result,
bytes, address);
}
......
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