| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc
|
| index 9fb4b00a99a573096e1060b1dfeec48ea29121a3..43feb0e7afdf829ae66120fae4925d9375559373 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc
|
| @@ -262,6 +262,15 @@ void DataReductionProxyIOData::SetDataReductionProxyConfiguration(
|
| config_client_->ApplySerializedConfig(serialized_config);
|
| }
|
|
|
| +bool DataReductionProxyIOData::ShouldEnableLoFiMode(
|
| + const net::URLRequest& request) {
|
| + if (!config_ || (config_->IsBypassedByDataReductionProxyLocalRules(
|
| + request, configurator_->GetProxyConfig()))) {
|
| + return false;
|
| + }
|
| + return config_->ShouldEnableLoFiMode(request);
|
| +}
|
| +
|
| void DataReductionProxyIOData::SetLoFiModeOff() {
|
| config_->SetLoFiModeOff();
|
| }
|
|
|