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 74b64ae03340f1ba0357c30a365580dc117a9827..4d3efa02631fa39a9c1365cc6a9e5bb073b0e94d 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -132,6 +132,7 @@ |
| #include "components/security_interstitials/core/ssl_error_ui.h" |
| #include "components/signin/core/common/profile_management_switches.h" |
| #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
| +#include "components/subresource_filter/content/browser/subresource_filter_navigation_throttle.h" |
| #include "components/translate/core/common/translate_switches.h" |
| #include "components/url_formatter/url_fixer.h" |
| #include "components/variations/variations_associated_data.h" |
| @@ -2899,6 +2900,12 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation( |
| throttles.push_back(new extensions::ExtensionNavigationThrottle(handle)); |
| #endif |
| + if (handle->IsInMainFrame() && handle->GetURL().SchemeIsHTTPOrHTTPS()) { |
|
clamy
2016/06/24 12:13:38
Put a TODO indicating that this should move to a W
melandory
2016/06/25 01:46:05
Done.
|
| + throttles.push_back( |
| + subresource_filter::SubresourceFilterNavigationThrottle::Create( |
| + handle)); |
| + } |
| + |
| return throttles; |
| } |