From f32e26dcbd0cb5fd3ec1f5d8823b0d57ebccb881 Mon Sep 17 00:00:00 2001 From: Kaloyan Chehlarski Date: Wed, 20 Mar 2024 09:38:28 +0100 Subject: [PATCH] thread_restrictions: Add PermissionManagerQt as friend class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed for the addition of permission persistence, which requires serializing to disk. Change-Id: Idf9d310535c28e77744b94a0f44b726d1f55d6a6 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/549638 Reviewed-by: Michael BrĂ¼ning (cherry picked from commit f3033f5aa9be1e98096c55972166d0be6cb64920) Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/564886 Reviewed-by: Allan Sandfeld Jensen --- chromium/base/threading/thread_restrictions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chromium/base/threading/thread_restrictions.h b/chromium/base/threading/thread_restrictions.h index 65e6be4e0c3e..9fd474db5a3a 100644 --- a/chromium/base/threading/thread_restrictions.h +++ b/chromium/base/threading/thread_restrictions.h @@ -446,6 +446,7 @@ namespace QtWebEngineCore { class DevToolsFrontendQt; class PrefServiceAdapter; class ProfileAdapter; +class PermissionManagerQt; } namespace base { @@ -671,6 +672,7 @@ class BASE_EXPORT [[maybe_unused, nodiscard]] ScopedAllowBlocking { friend class QtWebEngineCore::DevToolsFrontendQt; friend class QtWebEngineCore::PrefServiceAdapter; friend class QtWebEngineCore::ProfileAdapter; + friend class QtWebEngineCore::PermissionManagerQt; // Sorted by function name (with namespace), ignoring the return type. friend bool ::EnsureBrowserStateDirectoriesCreated(const base::FilePath&,