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

Unified Diff: components/cronet/android/url_request_context_adapter.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/cronet/android/url_request_context_adapter.cc
diff --git a/components/cronet/android/url_request_context_adapter.cc b/components/cronet/android/url_request_context_adapter.cc
index 9f437b49a8eeb0d716ae1a7ad528aded8e0c0776..69e10860c67c874897a0d5a640b57a171553d669 100644
--- a/components/cronet/android/url_request_context_adapter.cc
+++ b/components/cronet/android/url_request_context_adapter.cc
@@ -153,7 +153,7 @@ void URLRequestContextAdapter::InitRequestContextOnNetworkThread() {
net::URLRequestContextBuilder context_builder;
context_builder.set_network_delegate(
- base::WrapUnique(new BasicNetworkDelegate()));
+ base::MakeUnique<BasicNetworkDelegate>());
context_builder.set_proxy_config_service(std::move(proxy_config_service_));
config_->ConfigureURLRequestContextBuilder(&context_builder,
g_net_log.Pointer(), nullptr);

Powered by Google App Engine
This is Rietveld 408576698