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

Unified Diff: net/disk_cache/simple/simple_backend_impl.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/cookies/cookie_monster_unittest.cc ('k') | net/dns/dns_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_backend_impl.cc
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc
index 591f3a3f6a0dd28b4ec0f79261da1041c518c0e3..6d1d1311d6cd06ab98b21f91d690e500a82ea026 100644
--- a/net/disk_cache/simple/simple_backend_impl.cc
+++ b/net/disk_cache/simple/simple_backend_impl.cc
@@ -255,8 +255,8 @@ int SimpleBackendImpl::Init(const CompletionCallback& completion_callback) {
index_.reset(new SimpleIndex(
base::ThreadTaskRunnerHandle::Get(), this, cache_type_,
- base::WrapUnique(new SimpleIndexFile(cache_thread_, worker_pool_.get(),
- cache_type_, path_))));
+ base::MakeUnique<SimpleIndexFile>(cache_thread_, worker_pool_.get(),
+ cache_type_, path_)));
index_->ExecuteWhenReady(
base::Bind(&RecordIndexLoad, cache_type_, base::TimeTicks::Now()));
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/dns/dns_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698