Added --enable-distillability-service arg to the command line. (#21013)

* Added --enable-distillability-service arg to the command line.
This commit is contained in:
Pavel Beloborodov
2023-11-18 23:01:00 +07:00
committed by GitHub
parent d273c90ab2
commit f5583492d9
3 changed files with 7 additions and 1 deletions
@@ -792,7 +792,6 @@ class SpeedReaderWithDistillationServiceBrowserTest
public:
void SetUpCommandLine(base::CommandLine* command_line) override {
SpeedReaderBrowserTest::SetUpCommandLine(command_line);
command_line->AppendSwitch(switches::kEnableDistillabilityService);
}
};
@@ -57,6 +57,7 @@ absl::optional<int> ChromeMainDelegate::BasicStartupComplete() {
BraveCommandLineHelper command_line(base::CommandLine::ForCurrentProcess());
command_line.AppendSwitch(switches::kDisableDomainReliability);
command_line.AppendSwitch(switches::kEnableDomDistiller);
command_line.AppendSwitch(switches::kEnableDistillabilityService);
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
embedder_support::kOriginTrialPublicKey)) {
@@ -6,6 +6,7 @@
#include "brave/components/ai_chat/core/common/buildflags/buildflags.h"
#include "brave/components/content_settings/renderer/brave_content_settings_agent_impl.h"
#include "chrome/common/chrome_isolated_world_ids.h"
#include "components/dom_distiller/content/renderer/distillability_agent.h"
#include "components/feed/content/renderer/rss_link_reader.h"
#include "content/public/common/isolated_world_ids.h"
@@ -36,6 +37,11 @@ void RenderFrameWithBinderRegistryCreated(
#define BRAVE_RENDER_FRAME_CREATED \
RenderFrameWithBinderRegistryCreated(render_frame, registry);
// Prevents unnecessary js console logs spam.
#define DistillabilityAgent(render_frame, dcheck_is_on) \
DistillabilityAgent(render_frame, false)
#include "src/chrome/renderer/chrome_content_renderer_client.cc"
#undef BRAVE_RENDER_FRAME_CREATED
#undef DistillabilityAgent