diff --git a/src/url/gurl.cc b/src/url/gurl.cc index d7ede359d1..35780453e9 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" @@ -519,10 +518,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 8ad47d64a1..eb4d8d0fe0 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" @@ -448,8 +447,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 5c7d1bd8d6..f0c020325f 100644 --- a/src/url/origin.cc +++ b/src/url/origin.cc @@ -19,7 +19,6 @@ #include "base/strings/string_number_conversions.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" -#include "third_party/perfetto/include/perfetto/tracing/traced_value.h" #include "url/gurl.h" #include "url/url_canon.h" #include "url/url_canon_stdstring.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 181941abd6..c575ab5b4c 100644 --- a/src/url/origin.h +++ b/src/url/origin.h @@ -19,7 +19,6 @@ #include "build/build_config.h" #include "ipc/ipc_param_traits.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" #include "url/third_party/mozilla/url_parse.h" #include "url/url_canon.h" @@ -305,8 +304,6 @@ class COMPONENT_EXPORT(URL) Origin { const base::android::JavaRef& java_origin); #endif // BUILDFLAG(IS_ANDROID) - void WriteIntoTrace(perfetto::TracedValue context) const; - private: friend class blink::SecurityOrigin; friend class blink::SecurityOriginTest;