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

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

Issue 2770153004: Unittests for the Safe Browsing Subresource filter navigation throttle (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/subresource_filter/subresource_filter_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/subresource_filter/navigation_throttle_util.cc
diff --git a/chrome/browser/subresource_filter/navigation_throttle_util.cc b/chrome/browser/subresource_filter/navigation_throttle_util.cc
index 0225e4bb763009d4a80d79b8b91dd7bc9a138ece..d5a6fc1cbdd83b4406bbe334a8d54fe943e33502 100644
--- a/chrome/browser/subresource_filter/navigation_throttle_util.cc
+++ b/chrome/browser/subresource_filter/navigation_throttle_util.cc
@@ -14,10 +14,7 @@
content::NavigationThrottle* MaybeCreateSubresourceFilterNavigationThrottle(
content::NavigationHandle* navigation_handle,
safe_browsing::SafeBrowsingService* safe_browsing_service) {
- bool feature_enabled = base::FeatureList::IsEnabled(
- subresource_filter::kSubresourceFilterSafeBrowsingActivationThrottle);
- if (feature_enabled && navigation_handle->IsInMainFrame() &&
- safe_browsing_service &&
+ if (navigation_handle->IsInMainFrame() && safe_browsing_service &&
safe_browsing_service->database_manager()->IsSupported() &&
safe_browsing::V4FeatureList::GetV4UsageStatus() ==
safe_browsing::V4FeatureList::V4UsageStatus::V4_ONLY) {
« no previous file with comments | « no previous file | chrome/browser/subresource_filter/subresource_filter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698