Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: components/subresource_filter/core/browser/subresource_filter_features.cc

Issue 2665473002: Add support for custom subresource filter InstallerAttributes. (Closed)
Patch Set: address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/subresource_filter/core/browser/subresource_filter_features.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/subresource_filter/core/browser/subresource_filter_features.cc
diff --git a/components/subresource_filter/core/browser/subresource_filter_features.cc b/components/subresource_filter/core/browser/subresource_filter_features.cc
index 9d319f36006434df524704cb009c344fca01275a..f14186953a366b1ecda7f97be4391175e948e319 100644
--- a/components/subresource_filter/core/browser/subresource_filter_features.cc
+++ b/components/subresource_filter/core/browser/subresource_filter_features.cc
@@ -33,6 +33,8 @@ const char kActivationListSocialEngineeringAdsInterstitial[] =
"social_engineering_ads_interstitial";
const char kActivationListPhishingInterstitial[] = "phishing_interstitial";
+const char kRulesetFlavorParameterName[] = "ruleset_flavor";
+
const char kPerformanceMeasurementRateParameterName[] =
"performance_measurement_rate";
@@ -93,4 +95,10 @@ bool ShouldSuppressNotifications() {
false /* default value */);
}
+std::string GetRulesetFlavor() {
+ return variations::GetVariationParamValueByFeature(
+ subresource_filter::kSafeBrowsingSubresourceFilter,
+ subresource_filter::kRulesetFlavorParameterName);
+}
+
} // namespace subresource_filter
« no previous file with comments | « components/subresource_filter/core/browser/subresource_filter_features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698