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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: cleanup Created 3 years, 10 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/safe_browsing/test_safe_browsing_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 9b0b2bbac62e8c23b2bf8926361a37cfd785ac39..88488d204209082cdf09b83498288da7e513a9b9 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -81,6 +81,7 @@
#include "chrome/browser/ssl/ssl_cert_reporter.h"
#include "chrome/browser/ssl/ssl_client_certificate_selector.h"
#include "chrome/browser/ssl/ssl_error_handler.h"
+#include "chrome/browser/subresource_filter/navigation_throttle_util.h"
#include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/tracing/chrome_tracing_delegate.h"
@@ -3297,6 +3298,13 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
base::MakeUnique<extensions::ExtensionNavigationThrottle>(handle));
#endif
+ std::unique_ptr<content::NavigationThrottle>
+ subresource_filter_activation_throttle =
+ MaybeCreateSubresourceFilterNavigationThrottle(
vakh (use Gerrit instead) 2017/02/22 22:55:42 nit: you don't need the temporary std::unique_ptr
+ handle, g_browser_process->safe_browsing_service());
+ if (subresource_filter_activation_throttle)
+ throttles.push_back(std::move(subresource_filter_activation_throttle));
+
return throttles;
}
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/safe_browsing/test_safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698