Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a51a48b

Browse files
committed
net: Remove upstream temporary debug code breaking build
1 parent f790418 commit a51a48b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/net/socket/tcp_socket_posix.cc

Lines changed: 0 additions & 4 deletions
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"
@@ -464,9 +463,6 @@ void TCPSocketPosix::Close() {
464463
// trace event for this case so that it can be correlated with jank in traces.
465464
// Use the "base" category since "net" isn't enabled by default. See
466465
// https://crbug.com/1194888.
467-
TRACE_EVENT("base", PeerIsZeroIPv4(*this)
468-
? perfetto::StaticString{"CloseSocketTCP.PeerIsZero"}
469-
: perfetto::StaticString{"CloseSocketTCP"});
470466
#endif // BUILDFLAG(IS_APPLE) && !BUILDFLAG(CRONET_BUILD)
471467
socket_.reset();
472468
tag_ = SocketTag();

src/net/socket/udp_socket_posix.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#include "net/socket/socket_tag.h"
5555
#include "net/socket/udp_net_log_parameters.h"
5656
#include "net/traffic_annotation/network_traffic_annotation.h"
57-
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"
5857

5958
#if BUILDFLAG(IS_ANDROID)
6059
#include "base/native_library.h"
@@ -252,9 +251,6 @@ void UDPSocketPosix::Close() {
252251
// trace event for this case so that it can be correlated with jank in traces.
253252
// Use the "base" category since "net" isn't enabled by default. See
254253
// https://crbug.com/1194888.
255-
TRACE_EVENT("base", PeerIsZeroIPv4(*this)
256-
? perfetto::StaticString{"CloseSocketUDP.PeerIsZero"}
257-
: perfetto::StaticString{"CloseSocketUDP"});
258254

259255
// Attempt to clear errors on the socket so that they are not returned by
260256
// close(). This seems to be effective at clearing some, but not all,

0 commit comments

Comments
 (0)