Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc

Issue 1052583005: Remove usage of SingleThreadTaskRunner from DataReductionProxyConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 37ecf9678b17a8f8b531f52ae2d669d8b6b31229..9245544715ddb3a76a55a05ce27e498cae6fe83d 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
@@ -117,13 +117,12 @@ DataReductionProxyIOData::DataReductionProxyIOData(
scoped_ptr<DataReductionProxyMutableConfigValues> mutable_config =
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_creator_.get()));
+ config_.reset(new DataReductionProxyConfig(net_log, mutable_config.Pass(),
+ configurator_.get(),
+ event_creator_.get()));
} else {
config_.reset(new DataReductionProxyConfig(
- io_task_runner_, net_log, params.Pass(), configurator_.get(),
- event_creator_.get()));
+ net_log, params.Pass(), configurator_.get(), event_creator_.get()));
}
// It is safe to use base::Unretained here, since it gets executed
@@ -146,7 +145,10 @@ DataReductionProxyIOData::DataReductionProxyIOData(
}
DataReductionProxyIOData::DataReductionProxyIOData()
- : url_request_context_getter_(nullptr), weak_factory_(this) {
+ : client_(Client::UNKNOWN),
+ net_log_(nullptr),
+ url_request_context_getter_(nullptr),
+ weak_factory_(this) {
}
DataReductionProxyIOData::~DataReductionProxyIOData() {

Powered by Google App Engine
This is Rietveld 408576698