Chromium Code Reviews| Index: chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc |
| diff --git a/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc b/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc |
| index 6bda059f50c37b77e406f267a5de06c4b66e217e..a9ba6666c1277d16800135841b04c8049fc90261 100644 |
| --- a/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc |
| +++ b/chrome/browser/renderer_host/data_reduction_proxy_resource_throttle_android.cc |
| @@ -43,10 +43,13 @@ DataReductionProxyResourceThrottleFactory::CreateResourceThrottle( |
| content::ResourceType resource_type, |
| SafeBrowsingService* service) { |
| #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) |
| + // Send requests through Safe Browsing if we can't process them. |
| ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |
| if (io_data->IsOffTheRecord() || !io_data->IsDataReductionProxyEnabled() || |
| - request->url().SchemeIsSecure()) |
| - return new SafeBrowsingResourceThrottle(request, resource_type, service); |
| + request->url().SchemeIsSecure()) { |
| + return SafeBrowsingResourceThrottleFactory::CreateWithoutFactory( |
|
mattm
2015/07/24 23:24:11
This is kinda confusing at first glance.. maybe ha
Nathan Parker
2015/07/28 17:42:12
Done.
|
| + request, resource_type, service); |
| + } |
| #endif |
| return new DataReductionProxyResourceThrottle(request, resource_type, |
| service); |