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

Unified Diff: components/subresource_filter/core/common/activation_list.cc

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: only changes specific to this cl 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/core/common/activation_list.cc
diff --git a/components/subresource_filter/core/common/activation_list.cc b/components/subresource_filter/core/common/activation_list.cc
index f0ff340049003403fe5cc89042fdfa4a4444002d..e87775782578a356ed411e584fe344863bb52c1c 100644
--- a/components/subresource_filter/core/common/activation_list.cc
+++ b/components/subresource_filter/core/common/activation_list.cc
@@ -21,6 +21,9 @@ std::ostream& operator<<(std::ostream& os, const ActivationList& type) {
case ActivationList::PHISHING_INTERSTITIAL:
os << "PHISHING_INTERSTITIAL";
break;
+ case ActivationList::SUBRESOURCE_FILTER:
+ os << "SUBRESOURCE_FILTER";
+ break;
default:
NOTREACHED();
break;
@@ -41,6 +44,8 @@ ActivationList GetListForThreatTypeAndMetadata(
return ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL;
}
return ActivationList::PHISHING_INTERSTITIAL;
+ } else if (threat_type == safe_browsing::SB_THREAT_TYPE_SUBRESOURCE_FILTER) {
+ return ActivationList::SUBRESOURCE_FILTER;
}
return ActivationList::NONE;
}

Powered by Google App Engine
This is Rietveld 408576698