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

Unified Diff: net/spdy/spdy_test_util_common.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/spdy/spdy_network_transaction_unittest.cc ('k') | net/ssl/default_channel_id_store_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index 23c2b86428feb550031ce48c54cc345d1887d44b..1cd5c5d504897de06a011c429bf7051f1b40513a 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -457,7 +457,7 @@ SpdyURLRequestContext::SpdyURLRequestContext() : storage_(this) {
HttpAuthHandlerFactory::CreateDefault(host_resolver()));
storage_.set_http_server_properties(
std::unique_ptr<HttpServerProperties>(new HttpServerPropertiesImpl()));
- storage_.set_job_factory(base::WrapUnique(new URLRequestJobFactoryImpl()));
+ storage_.set_job_factory(base::MakeUnique<URLRequestJobFactoryImpl>());
HttpNetworkSession::Params params;
params.client_socket_factory = &socket_factory_;
params.host_resolver = host_resolver();
@@ -471,13 +471,13 @@ SpdyURLRequestContext::SpdyURLRequestContext() : storage_(this) {
params.enable_spdy_ping_based_connection_checking = false;
params.http_server_properties = http_server_properties();
storage_.set_http_network_session(
- base::WrapUnique(new HttpNetworkSession(params)));
+ base::MakeUnique<HttpNetworkSession>(params));
SpdySessionPoolPeer pool_peer(
storage_.http_network_session()->spdy_session_pool());
pool_peer.SetEnableSendingInitialData(false);
- storage_.set_http_transaction_factory(base::WrapUnique(
- new HttpCache(storage_.http_network_session(),
- HttpCache::DefaultBackend::InMemory(0), false)));
+ storage_.set_http_transaction_factory(base::MakeUnique<HttpCache>(
+ storage_.http_network_session(), HttpCache::DefaultBackend::InMemory(0),
+ false));
}
SpdyURLRequestContext::~SpdyURLRequestContext() {
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/ssl/default_channel_id_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698