Chromium Code Reviews| 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 add454a73af479000cb0732ffc762e8e6a25c5a3..36cbd02a94e517bfbde19b984e3e8f79c8f79aee 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" |
| @@ -3415,6 +3416,13 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation( |
| base::MakeUnique<extensions::ExtensionNavigationThrottle>(handle)); |
| #endif |
| + content::NavigationThrottle* subresource_filter_activation_throttle = |
| + MaybeCreateSubresourceFilterNavigationThrottle( |
| + handle, g_browser_process->safe_browsing_service()); |
| + if (subresource_filter_activation_throttle) |
|
engedy
2017/03/21 13:44:16
nit: {}
melandory
2017/03/24 15:49:27
Done.
|
| + throttles.push_back( |
| + base::WrapUnique(subresource_filter_activation_throttle)); |
| + |
| return throttles; |
| } |