From 1cf909c14dcfe6f4989e4df2ba05bf17213639d0 Mon Sep 17 00:00:00 2001 From: jj Date: Sat, 22 Feb 2025 18:24:31 +0000 Subject: [PATCH] referrer_sanitizer: export sanitize_referrer function It was not previously exported, which breaks component builds. --- .../add-flags-for-referrer-customization.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/extra/ungoogled-chromium/add-flags-for-referrer-customization.patch b/patches/extra/ungoogled-chromium/add-flags-for-referrer-customization.patch index 7ddb48c9..c2b53f6c 100644 --- a/patches/extra/ungoogled-chromium/add-flags-for-referrer-customization.patch +++ b/patches/extra/ungoogled-chromium/add-flags-for-referrer-customization.patch @@ -193,7 +193,7 @@ +} // namespace referrer_sanitizer --- /dev/null +++ b/services/network/public/cpp/referrer_sanitizer.h -@@ -0,0 +1,30 @@ +@@ -0,0 +1,32 @@ +// Copyright 2023 The ungoogled-chromium Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -209,12 +209,14 @@ + +namespace referrer_sanitizer { + ++COMPONENT_EXPORT(NETWORK_CPP) +std::pair sanitize_referrer( + const GURL& origin, + const GURL& destination, + const net::ReferrerPolicy& referrer_policy, + bool enable_referrers); + ++COMPONENT_EXPORT(NETWORK_CPP) +std::pair sanitize_referrer( + const GURL& origin, + const GURL& destination,