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

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

Issue 2504963004: Record time to first data reduction proxy request (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 5ce71b4a3bc4db68b842dbb1830848cbf828e072..e64f585a05e3bb82922aba0f53f6a277832f82ba 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
@@ -194,6 +194,7 @@ void DataReductionProxyIOData::SetDataReductionProxyService(
void DataReductionProxyIOData::InitializeOnIOThread() {
DCHECK(io_task_runner_->BelongsToCurrentThread());
config_->InitializeOnIOThread(basic_url_request_context_getter_.get());
+ proxy_delegate_->InitializeOnIOThread();
if (config_client_.get())
config_client_->InitializeOnIOThread(url_request_context_getter_);
if (ui_task_runner_->BelongsToCurrentThread()) {
@@ -248,7 +249,7 @@ DataReductionProxyIOData::CreateNetworkDelegate(
}
std::unique_ptr<DataReductionProxyDelegate>
-DataReductionProxyIOData::CreateProxyDelegate() const {
+DataReductionProxyIOData::CreateProxyDelegateForTesting() const {
DCHECK(io_task_runner_->BelongsToCurrentThread());
return base::MakeUnique<DataReductionProxyDelegate>(
config_.get(), configurator_.get(), event_creator_.get(),

Powered by Google App Engine
This is Rietveld 408576698