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

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

Issue 2844063002: Add support for multiple simultaneous subresource_filter::Configurations. (Closed)
Patch Set: Rebase. 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 c8e2adb204f8bafac37ba8bc951a8c86c141640e..ab7d64f00fb53bd545ef1bc201c8a60050f31683 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"
@@ -52,9 +53,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