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

Unified Diff: net/http/mock_http_cache.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/http/http_stream_parser_unittest.cc ('k') | net/http/transport_security_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/mock_http_cache.cc
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc
index 560ae9c80daa5217f405550c9a08fb8b1ad2fbde..9fc8ced93ce4c502f56f42508b8abc454208cd9b 100644
--- a/net/http/mock_http_cache.cc
+++ b/net/http/mock_http_cache.cc
@@ -541,11 +541,11 @@ int MockBackendFactory::CreateBackend(
//-----------------------------------------------------------------------------
MockHttpCache::MockHttpCache()
- : MockHttpCache(base::WrapUnique(new MockBackendFactory())) {}
+ : MockHttpCache(base::MakeUnique<MockBackendFactory>()) {}
MockHttpCache::MockHttpCache(
std::unique_ptr<HttpCache::BackendFactory> disk_cache_factory)
- : http_cache_(base::WrapUnique(new MockNetworkLayer()),
+ : http_cache_(base::MakeUnique<MockNetworkLayer>(),
std::move(disk_cache_factory),
true) {}
« no previous file with comments | « net/http/http_stream_parser_unittest.cc ('k') | net/http/transport_security_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698