From 6d6ce62db92b0a6b415c55e9b8fd861da13bfd6e Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 27 Aug 2025 15:19:41 +0200 Subject: [PATCH] Add cromite test support: fix build from scratch (#1271) Unfortunately, the logic for the log needs to be revised; I cannot use a reference to //chrome from //content. will be fixed soon --- build/patches/Add-cromite-test-support.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/patches/Add-cromite-test-support.patch b/build/patches/Add-cromite-test-support.patch index 77305a43..1f4e58ad 100644 --- a/build/patches/Add-cromite-test-support.patch +++ b/build/patches/Add-cromite-test-support.patch @@ -855,7 +855,7 @@ diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/b #include "url/origin.h" #include "url/url_constants.h" -+#include "chrome/browser/cromite/cromite_private_api_host.h" ++//#include "chrome/browser/cromite/cromite_private_api_host.h" + #if BUILDFLAG(IS_ANDROID) #include "content/browser/accessibility/browser_accessibility_manager_android.h" @@ -875,11 +875,11 @@ diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/b GetSiteInstance()->GetBrowserContext()->IsOffTheRecord(); + bool is_log_console_enabled = false; -+ CromitePrivateApiHost* cromite_data = -+ CromitePrivateApiHost::GetForCurrentDocument(this); -+ if (cromite_data) { -+ is_log_console_enabled = cromite_data->IsLogConsoleEnabled(); -+ } ++ // CromitePrivateApiHost* cromite_data = ++ // CromitePrivateApiHost::GetForCurrentDocument(this); ++ // if (cromite_data) { ++ // is_log_console_enabled = cromite_data->IsLogConsoleEnabled(); ++ // } LogConsoleMessage(log_level, message, line_no, is_builtin_component, - is_off_the_record, updated_source_id); + is_off_the_record, updated_source_id, is_log_console_enabled);