LeOSium_old/patches/0003-LeOS/40-59/49 - Adblocker-Enable-Ads-I...

24 lines
1.0 KiB
Diff

From: Tommy Webb <tommy@calyxinstitute.org>
Date: Wed, 22 Mar 2023 08:37:59 -0400
Subject: Adblocker: Enable Ads Intervention at all times
Change-Id: Id08ed93cd52675162a0d9e4539bb204877808170
---
.../content/browser/ads_intervention_manager.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/components/subresource_filter/content/browser/ads_intervention_manager.cc b/components/subresource_filter/content/browser/ads_intervention_manager.cc
--- a/components/subresource_filter/content/browser/ads_intervention_manager.cc
+++ b/components/subresource_filter/content/browser/ads_intervention_manager.cc
@@ -109,6 +109,7 @@ AdsInterventionManager::GetLastAdsIntervention(const GURL& url) const {
bool AdsInterventionManager::ShouldActivate(
content::NavigationHandle* navigation_handle) const {
+ if ((true)) return true;
const GURL& url(navigation_handle->GetURL());
// TODO(https://crbug.com/1136987): Add new ads intervention
// manager function to return struct with all ads intervention
--
2.40.1