From 6cffa0a16fca2f8a67b07f03229d88d263d96dab Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 24 Apr 2021 08:18:21 +0800 Subject: [PATCH] url: Remove perfetto tracing --- src/url/gurl.cc | 5 ----- src/url/gurl.h | 3 --- src/url/origin.cc | 5 ----- src/url/origin.h | 3 --- 4 files changed, 16 deletions(-) diff --git a/src/url/gurl.cc b/src/url/gurl.cc index 944ef15230..8869bf695d 100644 --- a/src/url/gurl.cc +++ b/src/url/gurl.cc @@ -16,7 +16,6 @@ #include "base/strings/string_piece.h" #include "base/strings/string_util.h" #include "base/trace_event/memory_usage_estimator.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value.h" #include "url/url_canon_stdstring.h" #include "url/url_util.h" @@ -530,10 +529,6 @@ bool GURL::IsAboutPath(base::StringPiece actual_path, return false; } -void GURL::WriteIntoTrace(perfetto::TracedValue context) const { - std::move(context).WriteString(possibly_invalid_spec()); -} - std::ostream& operator<<(std::ostream& out, const GURL& url) { return out << url.possibly_invalid_spec(); } diff --git a/src/url/gurl.h b/src/url/gurl.h index f0d4a40624..2345f54131 100644 --- a/src/url/gurl.h +++ b/src/url/gurl.h @@ -15,7 +15,6 @@ #include "base/debug/alias.h" #include "base/debug/crash_logging.h" #include "base/strings/string_piece.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h" #include "url/third_party/mozilla/url_parse.h" #include "url/url_canon.h" #include "url/url_canon_stdstring.h" @@ -443,8 +442,6 @@ class COMPONENT_EXPORT(URL) GURL { static bool IsAboutPath(base::StringPiece actual_path, base::StringPiece allowed_path); - void WriteIntoTrace(perfetto::TracedValue context) const; - private: // Variant of the string parsing constructor that allows the caller to elect // retain trailing whitespace, if any, on the passed URL spec, but only if diff --git a/src/url/origin.cc b/src/url/origin.cc index fdc1cd09b4..71e6064b2c 100644 --- a/src/url/origin.cc +++ b/src/url/origin.cc @@ -22,7 +22,6 @@ #include "base/strings/strcat.h" #include "base/strings/string_piece.h" #include "base/unguessable_token.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value.h" #include "url/gurl.h" #include "url/scheme_host_port.h" #include "url/url_constants.h" @@ -389,10 +388,6 @@ absl::optional Origin::Deserialize(const std::string& value) { return origin; } -void Origin::WriteIntoTrace(perfetto::TracedValue context) const { - std::move(context).WriteString(GetDebugString()); -} - std::ostream& operator<<(std::ostream& out, const url::Origin& origin) { out << origin.GetDebugString(); return out; diff --git a/src/url/origin.h b/src/url/origin.h index a86b021b1d..67b0bb9bc1 100644 --- a/src/url/origin.h +++ b/src/url/origin.h @@ -20,7 +20,6 @@ #include "build/build_config.h" #include "build/buildflag.h" #include "third_party/abseil-cpp/absl/types/optional.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h" #include "url/scheme_host_port.h" #if BUILDFLAG(IS_ANDROID) @@ -327,8 +326,6 @@ class COMPONENT_EXPORT(URL) Origin { uint64_t tokenLowBits); #endif // BUILDFLAG(IS_ANDROID) - void WriteIntoTrace(perfetto::TracedValue context) const; - private: friend class blink::SecurityOrigin; friend class blink::SecurityOriginTest;