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 9034bae26e993051f0cab79adcb6de372b120391..52340f7b7859457dd0193625d7ccaeb7b6430c01 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 |
@@ -58,12 +58,12 @@ DataReductionProxyIOData::DataReductionProxyIOData( |
DataReductionProxyMutableConfigValues::CreateFromParams(params.get()); |
raw_mutable_config = mutable_config.get(); |
config_.reset(new DataReductionProxyConfig( |
- io_task_runner_, net_log, mutable_config.Pass(), configurator_.get(), |
- event_store_.get())); |
+ io_task_runner_, ui_task_runner_, net_log, mutable_config.Pass(), |
+ configurator_.get(), event_store_.get())); |
} else { |
- config_.reset( |
- new DataReductionProxyConfig(io_task_runner_, net_log, params.Pass(), |
- configurator_.get(), event_store_.get())); |
+ config_.reset(new DataReductionProxyConfig( |
+ io_task_runner_, ui_task_runner_, net_log, params.Pass(), |
+ configurator_.get(), event_store_.get())); |
} |
// It is safe to use base::Unretained here, since it gets executed |
@@ -113,6 +113,7 @@ void DataReductionProxyIOData::SetDataReductionProxyService( |
DCHECK(ui_task_runner_->BelongsToCurrentThread()); |
service_ = data_reduction_proxy_service; |
url_request_context_getter_ = service_->url_request_context_getter(); |
+ config()->SetDataReductionProxyService(data_reduction_proxy_service); |
// Using base::Unretained is safe here, unless the browser is being shut down |
// before the Initialize task can be executed. The task is only created as |
// part of class initialization. |