From 8c6e26584b612bdfd57370dc424ee48402775da8 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 29 May 2022 19:14:32 +0800 Subject: [PATCH] net: Remove upstream temporary debug code breaking build --- src/net/socket/tcp_socket_posix.cc | 3 --- src/net/socket/udp_socket_posix.cc | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/net/socket/tcp_socket_posix.cc b/src/net/socket/tcp_socket_posix.cc index 73d002d442..60eec3e60c 100644 --- a/src/net/socket/tcp_socket_posix.cc +++ b/src/net/socket/tcp_socket_posix.cc @@ -471,9 +471,6 @@ void TCPSocketPosix::Close() { // trace event for this case so that it can be correlated with jank in traces. // Use the "base" category since "net" isn't enabled by default. See // https://crbug.com/1194888. - TRACE_EVENT("base", PeerIsZeroIPv4(*this) - ? perfetto::StaticString{"CloseSocketTCP.PeerIsZero"} - : perfetto::StaticString{"CloseSocketTCP"}); #endif // BUILDFLAG(IS_APPLE) && !BUILDFLAG(CRONET_BUILD) socket_.reset(); tag_ = SocketTag(); diff --git a/src/net/socket/udp_socket_posix.cc b/src/net/socket/udp_socket_posix.cc index 120ce583c3..7e97838b52 100644 --- a/src/net/socket/udp_socket_posix.cc +++ b/src/net/socket/udp_socket_posix.cc @@ -288,9 +288,6 @@ void UDPSocketPosix::Close() { // trace event for this case so that it can be correlated with jank in traces. // Use the "base" category since "net" isn't enabled by default. See // https://crbug.com/1194888. - TRACE_EVENT("base", PeerIsZeroIPv4(*this) - ? perfetto::StaticString{"CloseSocketUDP.PeerIsZero"} - : perfetto::StaticString{"CloseSocketUDP"}); // Attempt to clear errors on the socket so that they are not returned by // close(). This seems to be effective at clearing some, but not all,