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

Unified Diff: chrome/browser/subresource_filter/chrome_subresource_filter_client.cc

Issue 2844063002: Add support for multiple simultaneous subresource_filter::Configurations. (Closed)
Patch Set: Comment nit. Created 3 years, 7 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: chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
diff --git a/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc b/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
index fc42142074938b6dfd4c45eb8f84f074c71e3ae0..532482f9b188e0246d423b98c49406af8ff768bb 100644
--- a/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
+++ b/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
@@ -7,6 +7,7 @@
#include <string>
#include <utility>
+#include "base/feature_list.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/browser_process.h"
@@ -48,9 +49,8 @@ void ChromeSubresourceFilterClient::MaybeAppendNavigationThrottles(
content::NavigationHandle* navigation_handle,
std::vector<std::unique_ptr<content::NavigationThrottle>>* throttles) {
// Don't add any throttles if the feature isn't enabled at all.
- if (subresource_filter::GetActiveConfigurations()
- ->the_one_and_only()
- .activation_scope == subresource_filter::ActivationScope::NO_SITES) {
+ if (!base::FeatureList::IsEnabled(
+ subresource_filter::kSafeBrowsingSubresourceFilter)) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698