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

Unified Diff: components/subresource_filter/content/browser/content_activation_list_utils.cc

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: feature Created 3 years, 9 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
Index: components/subresource_filter/content/browser/content_activation_list_utils.cc
diff --git a/components/subresource_filter/content/browser/content_activation_list_utils.cc b/components/subresource_filter/content/browser/content_activation_list_utils.cc
index 6689d600a6be3fc5ef7b0af4d4cd22b01d88a7fe..bff2cef641dd87c9db80e8b44993ebaf81d4b10b 100644
--- a/components/subresource_filter/content/browser/content_activation_list_utils.cc
+++ b/components/subresource_filter/content/browser/content_activation_list_utils.cc
@@ -14,12 +14,17 @@ ActivationList GetListForThreatTypeAndMetadata(
bool is_soc_engineering_ads_interstitial =
threat_type_metadata ==
safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS;
+ bool subresource_filter =
+ (threat_type == safe_browsing::SB_THREAT_TYPE_SUBRESOURCE_FILTER);
if (is_phishing_interstitial) {
if (is_soc_engineering_ads_interstitial) {
return ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL;
}
return ActivationList::PHISHING_INTERSTITIAL;
+ } else if (subresource_filter) {
+ return ActivationList::SUBRESOURCE_FILTER;
}
+
return ActivationList::NONE;
}

Powered by Google App Engine
This is Rietveld 408576698