Index: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
index 43d0795a573ce019e49491ef52d8bcc3a916862d..c11e372132aab5ee64646b8cd51f3134628a9fe6 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
@@ -352,23 +352,6 @@ bool DataReductionProxyParams::IsDataReductionProxy( |
return false; |
} |
-// TODO(kundaji): Check that the request will actually be sent through the |
-// proxy. |
-bool DataReductionProxyParams::IsDataReductionProxyEligible( |
- const net::URLRequest* request) { |
- DCHECK(request); |
- DCHECK(request->context()); |
- DCHECK(request->context()->proxy_service()); |
- net::ProxyInfo result; |
- request->context()->proxy_service()->config().proxy_rules().Apply( |
- request->url(), &result); |
- if (!result.proxy_server().is_valid()) |
- return false; |
- if (result.proxy_server().is_direct()) |
- return false; |
- return IsDataReductionProxy(result.proxy_server().host_port_pair(), NULL); |
-} |
- |
bool DataReductionProxyParams::IsBypassedByDataReductionProxyLocalRules( |
const net::URLRequest& request, |
const net::ProxyConfig& data_reduction_proxy_config) const { |