Skip to content

Commit

Permalink
Disable feeds support by default: use the new flag kWebFeedKillSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Jul 30, 2024
1 parent d6fed8f commit ab909cc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build/patches/Disable-feeds-support-by-default.patch
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,12 @@ diff --git a/components/feed/core/shared_prefs/pref_names.cc b/components/feed/c
diff --git a/components/feed/feed_feature_list.cc b/components/feed/feed_feature_list.cc
--- a/components/feed/feed_feature_list.cc
+++ b/components/feed/feed_feature_list.cc
@@ -155,10 +155,13 @@ BASE_FEATURE(kWebFeedKillSwitch,
base::FEATURE_DISABLED_BY_DEFAULT);

bool IsWebFeedEnabledForLocale(const std::string& country) {
+ if ((true)) return false;
const std::vector<std::string> launched_countries = {"AU", "CA", "GB",
"NZ", "US", "ZA"};
return base::Contains(launched_countries, country) &&
@@ -161,4 +161,7 @@ bool IsWebFeedEnabledForLocale(const std::string& country) {
!base::FeatureList::IsEnabled(kWebFeedKillSwitch);
}

+SET_CROMITE_FEATURE_DISABLED(kInterestFeedV2);
+SET_CROMITE_FEATURE_ENABLED(kWebFeedKillSwitch);
+
} // namespace feed
--

0 comments on commit ab909cc

Please sign in to comment.