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

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

Issue 2252113004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 559e1393016beb30397c239495d9340b0ba03012..efb193612004db097f61ddcc0001a1605fdeb116 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
@@ -223,9 +223,9 @@ void DataReductionProxyIOData::SetPingbackReportingFraction(
std::unique_ptr<net::URLRequestInterceptor>
DataReductionProxyIOData::CreateInterceptor() {
DCHECK(io_task_runner_->BelongsToCurrentThread());
- return base::WrapUnique(new DataReductionProxyInterceptor(
+ return base::MakeUnique<DataReductionProxyInterceptor>(
config_.get(), config_client_.get(), bypass_stats_.get(),
- event_creator_.get()));
+ event_creator_.get());
}
std::unique_ptr<DataReductionProxyNetworkDelegate>
@@ -250,9 +250,9 @@ DataReductionProxyIOData::CreateNetworkDelegate(
std::unique_ptr<DataReductionProxyDelegate>
DataReductionProxyIOData::CreateProxyDelegate() const {
DCHECK(io_task_runner_->BelongsToCurrentThread());
- return base::WrapUnique(new DataReductionProxyDelegate(
+ return base::MakeUnique<DataReductionProxyDelegate>(
config_.get(), configurator_.get(), event_creator_.get(),
- bypass_stats_.get(), net_log_));
+ bypass_stats_.get(), net_log_);
}
// TODO(kundaji): Rename this method to something more descriptive.

Powered by Google App Engine
This is Rietveld 408576698