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

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

Issue 2834543003: [subresource_filter] SB throttle can send multiple speculative requests. (Closed)
Patch Set: Add NoRedirectSpeculation metric 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
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 d5a6fc1cbdd83b4406bbe334a8d54fe943e33502..3d69a3d519fb51a335962d6d767256b8dc4ed6c5 100644
--- a/chrome/browser/subresource_filter/navigation_throttle_util.cc
+++ b/chrome/browser/subresource_filter/navigation_throttle_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// 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.
@@ -9,6 +9,7 @@
#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(
@@ -20,7 +21,10 @@ content::NavigationThrottle* MaybeCreateSubresourceFilterNavigationThrottle(
safe_browsing::V4FeatureList::V4UsageStatus::V4_ONLY) {
return new subresource_filter::
SubresourceFilterSafeBrowsingActivationThrottle(
- navigation_handle, safe_browsing_service->database_manager());
+ navigation_handle,
+ content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::IO),
+ safe_browsing_service->database_manager());
}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698