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 |
deleted file mode 100644 |
index 3d69a3d519fb51a335962d6d767256b8dc4ed6c5..0000000000000000000000000000000000000000 |
--- a/chrome/browser/subresource_filter/navigation_throttle_util.cc |
+++ /dev/null |
@@ -1,30 +0,0 @@ |
-// Copyright 2017 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "chrome/browser/subresource_filter/navigation_throttle_util.h" |
- |
-#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
-#include "components/safe_browsing_db/database_manager.h" |
-#include "components/safe_browsing_db/v4_feature_list.h" |
-#include "components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h" |
-#include "components/subresource_filter/core/browser/subresource_filter_features.h" |
-#include "content/public/browser/browser_thread.h" |
-#include "content/public/browser/navigation_handle.h" |
- |
-content::NavigationThrottle* MaybeCreateSubresourceFilterNavigationThrottle( |
- content::NavigationHandle* navigation_handle, |
- safe_browsing::SafeBrowsingService* 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) { |
- return new subresource_filter:: |
- SubresourceFilterSafeBrowsingActivationThrottle( |
- navigation_handle, |
- content::BrowserThread::GetTaskRunnerForThread( |
- content::BrowserThread::IO), |
- safe_browsing_service->database_manager()); |
- } |
- return nullptr; |
-} |