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

Unified Diff: net/socket/socket_posix.cc

Issue 2533953005: Standardize "net" category trace events (Closed)
Patch Set: self review Created 4 years 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
Index: net/socket/socket_posix.cc
diff --git a/net/socket/socket_posix.cc b/net/socket/socket_posix.cc
index a86bf855b3230fb3166efb847bbdfd58da18fcac..c8383518bd02a3aa5daaa41ec18e296cf05685b4 100644
--- a/net/socket/socket_posix.cc
+++ b/net/socket/socket_posix.cc
@@ -19,6 +19,7 @@
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/base/sockaddr_storage.h"
+#include "net/log/trace_constants.h"
namespace net {
@@ -369,7 +370,8 @@ void SocketPosix::DetachFromThread() {
}
void SocketPosix::OnFileCanReadWithoutBlocking(int fd) {
- TRACE_EVENT0("net", "SocketPosix::OnFileCanReadWithoutBlocking");
+ TRACE_EVENT0(kNetTracingCategory,
+ "SocketPosix::OnFileCanReadWithoutBlocking");
DCHECK(!accept_callback_.is_null() || !read_callback_.is_null());
if (!accept_callback_.is_null()) {
AcceptCompleted();

Powered by Google App Engine
This is Rietveld 408576698