Skip to content

Commit e12009d

Browse files
committed
net: Remove upstream temporary debug code breaking build
1 parent 290018a commit e12009d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/net/socket/tcp_socket_posix.cc

-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include "net/socket/socket_posix.h"
4444
#include "net/socket/socket_tag.h"
4545
#include "net/traffic_annotation/network_traffic_annotation.h"
46-
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"
4746

4847
#if BUILDFLAG(IS_ANDROID)
4948
#include "net/android/network_library.h"
@@ -466,9 +465,6 @@ void TCPSocketPosix::Close() {
466465
// trace event for this case so that it can be correlated with jank in traces.
467466
// Use the "base" category since "net" isn't enabled by default. See
468467
// https://crbug.com/1194888.
469-
TRACE_EVENT("base", PeerIsZeroIPv4(*this)
470-
? perfetto::StaticString{"CloseSocketTCP.PeerIsZero"}
471-
: perfetto::StaticString{"CloseSocketTCP"});
472468
#endif // BUILDFLAG(IS_APPLE) && !BUILDFLAG(CRONET_BUILD)
473469
socket_.reset();
474470
tag_ = SocketTag();

src/net/socket/udp_socket_posix.cc

-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#include "net/socket/socket_tag.h"
5757
#include "net/socket/udp_net_log_parameters.h"
5858
#include "net/traffic_annotation/network_traffic_annotation.h"
59-
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"
6059

6160
#if BUILDFLAG(IS_ANDROID)
6261
#include "base/native_library.h"
@@ -270,9 +269,6 @@ void UDPSocketPosix::Close() {
270269
// trace event for this case so that it can be correlated with jank in traces.
271270
// Use the "base" category since "net" isn't enabled by default. See
272271
// https://crbug.com/1194888.
273-
TRACE_EVENT("base", PeerIsZeroIPv4(*this)
274-
? perfetto::StaticString{"CloseSocketUDP.PeerIsZero"}
275-
: perfetto::StaticString{"CloseSocketUDP"});
276272

277273
// Attempt to clear errors on the socket so that they are not returned by
278274
// close(). See https://crbug.com/1151048.

0 commit comments

Comments
 (0)