Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 6d6ce62d authored by Carmelo Messina's avatar Carmelo Messina
Browse files

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
parent e2c94716
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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);