mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-23 22:06:12 +03:00
net: Remove upstream temporary debug code breaking build
This commit is contained in:
parent
2473393912
commit
43d9635938
@ -43,7 +43,6 @@
|
|||||||
#include "net/socket/socket_posix.h"
|
#include "net/socket/socket_posix.h"
|
||||||
#include "net/socket/socket_tag.h"
|
#include "net/socket/socket_tag.h"
|
||||||
#include "net/traffic_annotation/network_traffic_annotation.h"
|
#include "net/traffic_annotation/network_traffic_annotation.h"
|
||||||
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"
|
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if BUILDFLAG(IS_ANDROID)
|
||||||
#include "net/android/network_library.h"
|
#include "net/android/network_library.h"
|
||||||
@ -461,9 +460,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();
|
||||||
|
@ -56,7 +56,6 @@
|
|||||||
#include "net/socket/socket_tag.h"
|
#include "net/socket/socket_tag.h"
|
||||||
#include "net/socket/udp_net_log_parameters.h"
|
#include "net/socket/udp_net_log_parameters.h"
|
||||||
#include "net/traffic_annotation/network_traffic_annotation.h"
|
#include "net/traffic_annotation/network_traffic_annotation.h"
|
||||||
#include "third_party/perfetto/include/perfetto/tracing/string_helpers.h"
|
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if BUILDFLAG(IS_ANDROID)
|
||||||
#include "base/native_library.h"
|
#include "base/native_library.h"
|
||||||
@ -315,9 +314,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(). See https://crbug.com/1151048.
|
// close(). See https://crbug.com/1151048.
|
||||||
|
Loading…
Reference in New Issue
Block a user