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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user