Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1006)

Unified Diff: net/udp/udp_socket_libevent.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/tld_cleanup/tld_cleanup.gyp ('k') | net/udp/udp_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_socket_libevent.cc
diff --git a/net/udp/udp_socket_libevent.cc b/net/udp/udp_socket_libevent.cc
index 8dd102a8a77a47e9e71e8bd1b01c271bded104a7..6fdb94e5eb15e69de304145860163de27489388e 100644
--- a/net/udp/udp_socket_libevent.cc
+++ b/net/udp/udp_socket_libevent.cc
@@ -16,7 +16,6 @@
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "base/metrics/sparse_histogram.h"
-#include "base/metrics/stats_counters.h"
#include "base/posix/eintr_wrapper.h"
#include "base/rand_util.h"
#include "net/base/io_buffer.h"
@@ -127,8 +126,7 @@ void UDPSocketLibevent::Close() {
ok = write_socket_watcher_.StopWatchingFileDescriptor();
DCHECK(ok);
- if (IGNORE_EINTR(close(socket_)) < 0)
- PLOG(ERROR) << "close";
+ PCHECK(0 == IGNORE_EINTR(close(socket_)));
socket_ = kInvalidSocket;
addr_family_ = 0;
@@ -428,8 +426,6 @@ void UDPSocketLibevent::LogRead(int result,
is_address_valid ? &address : NULL));
}
- base::StatsCounter read_bytes("udp.read_bytes");
- read_bytes.Add(result);
NetworkActivityMonitor::GetInstance()->IncrementBytesReceived(result);
}
@@ -460,8 +456,6 @@ void UDPSocketLibevent::LogWrite(int result,
CreateNetLogUDPDataTranferCallback(result, bytes, address));
}
- base::StatsCounter write_bytes("udp.write_bytes");
- write_bytes.Add(result);
NetworkActivityMonitor::GetInstance()->IncrementBytesSent(result);
}
« no previous file with comments | « net/tools/tld_cleanup/tld_cleanup.gyp ('k') | net/udp/udp_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698