Index: components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.cc |
diff --git a/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.cc b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.cc |
index a6ebb262139a132c1c87ce54264dfadc4ce784b6..719648f559f3f0b671fc65a1c8e31a84e0be7007 100644 |
--- a/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.cc |
+++ b/components/data_reduction_proxy/content/browser/content_data_reduction_proxy_lofi_helper.cc |
@@ -15,8 +15,12 @@ ContentDataReductionProxyLoFiHelper::~ContentDataReductionProxyLoFiHelper() {} |
bool ContentDataReductionProxyLoFiHelper::IsLoFi( |
net::URLRequest* request) const { |
- // TODO: return IsLoFi from ResourceRequestInfo. |
- return false; |
+ const content::ResourceRequestInfo* request_info = |
+ content::ResourceRequestInfo::ForRequest(request); |
mmenke
2015/09/29 16:35:57
ResourceRequestInfo will never exist at this point
megjablon
2015/09/29 21:20:07
This is called from DRPNetworkDelegate::OnBeforeSe
mmenke
2015/09/30 19:33:41
Sorry, I thought that this is what was being calle
|
+ if (request_info) |
+ return request_info->IsLoFi(); |
+ else |
+ return false; |
} |
} // namespace data_reduction_roxy |