| Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
| diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
| index e5a36cc6d8ca2e66af63e593511b455b1402a60d..f0979fed284b388a81d5647979ded7815df4f4c5 100644
|
| --- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
| +++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
| @@ -829,16 +829,19 @@ void ChromeResourceDispatcherHostDelegate::RequestComplete(
|
| base::TimeTicks::Now() - url_request->creation_time()));
|
| }
|
|
|
| -bool ChromeResourceDispatcherHostDelegate::ShouldEnableLoFiMode(
|
| +content::PreviewsState ChromeResourceDispatcherHostDelegate::GetPreviewsState(
|
| const net::URLRequest& url_request,
|
| content::ResourceContext* resource_context) {
|
| ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
|
| data_reduction_proxy::DataReductionProxyIOData* data_reduction_proxy_io_data =
|
| io_data->data_reduction_proxy_io_data();
|
|
|
| - if (data_reduction_proxy_io_data)
|
| - return data_reduction_proxy_io_data->ShouldEnableLoFiMode(url_request);
|
| - return false;
|
| + if (data_reduction_proxy_io_data) {
|
| + return data_reduction_proxy_io_data->ShouldEnableLoFiMode(url_request)
|
| + ? content::SERVER_LOFI_ON
|
| + : content::PREVIEWS_OFF;
|
| + }
|
| + return content::PREVIEWS_OFF;
|
| }
|
|
|
| // static
|
|
|