From 722cca21e7d43ab116f3293449beb6b2cf3e3ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qian=20Qian=20=22Cubik=22=E2=80=8E?= <cubik65536@cubik65536.top> Date: Sat, 21 Sep 2024 16:21:49 -0400 Subject: [PATCH] Fix safebrowing disable patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Qian Qian "Cubik" <cubik65536@cubik65536.top> --- .../macos/fix-disabling-safebrowsing.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch b/patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch index 03db6cc..9d0b80f 100644 --- a/patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch +++ b/patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch @@ -212,3 +212,24 @@ #if !BUILDFLAG(IS_ANDROID) { key::kLensOverlaySettings, lens::prefs::kLensOverlaySettings, +--- a/chrome/browser/chrome_content_browser_client.cc ++++ b/chrome/browser/chrome_content_browser_client.cc +@@ -8018,18 +8018,6 @@ bool ChromeContentBrowserClient::SetupEm + CHECK(compiler->SetParameter(sandbox::policy::kParamSodaLanguagePackPath, + soda_language_pack_path.value())); + return true; +- } else if (sandbox_type == sandbox::mojom::Sandbox::kScreenAI) { +- // ScreenAI service needs read access to ScreenAI component binary path to +- // load it. +- base::FilePath screen_ai_binary_path = +- screen_ai::ScreenAIInstallState::GetInstance() +- ->get_component_binary_path(); +- if (screen_ai_binary_path.empty()) { +- VLOG(1) << "Screen AI component not found."; +- return false; +- } +- return compiler->SetParameter(sandbox::policy::kParamScreenAiComponentPath, +- screen_ai_binary_path.value()); + } + + return false;