net: Remove upstream temporary debug code breaking build

This commit is contained in:
klzgrad 2022-05-29 19:14:32 +08:00
parent a9f2466e36
commit 088e4a349d
2 changed files with 0 additions and 6 deletions

View File

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

View File

@ -288,9 +288,6 @@ void UDPSocketPosix::Close() {
// trace event for this case so that it can be correlated with jank in traces. // 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 // Use the "base" category since "net" isn't enabled by default. See
// https://crbug.com/1194888. // 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 // 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, // close(). This seems to be effective at clearing some, but not all,