Temp try to fix DIPS service: attempt to temporarily fix #1308

This commit is contained in:
Carmelo Messina
2024-07-30 09:19:33 +02:00
parent a3379e5f35
commit 887ca9a6ab
@@ -0,0 +1,35 @@
From: uazo <uazo@users.noreply.github.com>
Date: Mon, 29 Jul 2024 12:12:37 +0000
Subject: Temp try to fix DIPS service
---
chrome/browser/dips/dips_service.cc | 1 +
chrome/browser/ui/tab_helpers.cc | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/browser/dips/dips_service.cc b/chrome/browser/dips/dips_service.cc
--- a/chrome/browser/dips/dips_service.cc
+++ b/chrome/browser/dips/dips_service.cc
@@ -57,6 +57,7 @@
BASE_FEATURE(kDipsPrepopulation,
"DipsPrepopulation",
base::FEATURE_ENABLED_BY_DEFAULT);
+SET_CROMITE_FEATURE_DISABLED(kDipsPrepopulation);
namespace {
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -515,7 +515,9 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
PrefsTabHelper::CreateForWebContents(web_contents);
prerender::NoStatePrefetchTabHelper::CreateForWebContents(web_contents);
RecentlyAudibleHelper::CreateForWebContents(web_contents);
- RedirectHeuristicTabHelper::CreateForWebContents(web_contents);
+ if (base::FeatureList::IsEnabled(features::kDIPS)) {
+ RedirectHeuristicTabHelper::CreateForWebContents(web_contents);
+ }
#if BUILDFLAG(IS_ANDROID)
RequestDesktopSiteWebContentsObserverAndroid::CreateForWebContents(
web_contents);
--