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; |
} |