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

Unified Diff: net/proxy/proxy_script_fetcher_impl_unittest.cc

Issue 2259823002: 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, 3 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
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing_unittest.cc ('k') | net/proxy/proxy_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_script_fetcher_impl_unittest.cc
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index 2fb37bb1ed8260db99772972ab75b822d0a95d9e..33a37cee7e308921990df194b7482c75eda18837 100644
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
@@ -93,16 +93,16 @@ class RequestContext : public URLRequestContext {
params.ssl_config_service = ssl_config_service();
params.http_server_properties = http_server_properties();
storage_.set_http_network_session(
- base::WrapUnique(new HttpNetworkSession(params)));
- storage_.set_http_transaction_factory(base::WrapUnique(
- new HttpCache(storage_.http_network_session(),
- HttpCache::DefaultBackend::InMemory(0), false)));
+ base::MakeUnique<HttpNetworkSession>(params));
+ storage_.set_http_transaction_factory(base::MakeUnique<HttpCache>(
+ storage_.http_network_session(), HttpCache::DefaultBackend::InMemory(0),
+ false));
std::unique_ptr<URLRequestJobFactoryImpl> job_factory =
- base::WrapUnique(new URLRequestJobFactoryImpl());
+ base::MakeUnique<URLRequestJobFactoryImpl>();
#if !defined(DISABLE_FILE_SUPPORT)
job_factory->SetProtocolHandler("file",
- base::WrapUnique(new FileProtocolHandler(
- base::ThreadTaskRunnerHandle::Get())));
+ base::MakeUnique<FileProtocolHandler>(
+ base::ThreadTaskRunnerHandle::Get()));
#endif
storage_.set_job_factory(std::move(job_factory));
}
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing_unittest.cc ('k') | net/proxy/proxy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698