Skip to content

Commit

Permalink
net: Remove upstream temporary debug code breaking build
Browse files Browse the repository at this point in the history
  • Loading branch information
klzgrad committed Jun 26, 2022
1 parent 290018a commit e12009d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/net/socket/tcp_socket_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include "net/socket/socket_posix.h"
#include "net/socket/socket_tag.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"

#if BUILDFLAG(IS_ANDROID)
#include "net/android/network_library.h"
Expand Down Expand Up @@ -466,9 +465,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();
Expand Down
4 changes: 0 additions & 4 deletions src/net/socket/udp_socket_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include "net/socket/socket_tag.h"
#include "net/socket/udp_net_log_parameters.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"

#if BUILDFLAG(IS_ANDROID)
#include "base/native_library.h"
Expand Down Expand Up @@ -270,9 +269,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(). See https://crbug.com/1151048.
Expand Down

0 comments on commit e12009d

Please sign in to comment.