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

Unified Diff: base/debug/activity_tracker.cc

Issue 2258713003: 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: base/debug/activity_tracker.cc
diff --git a/base/debug/activity_tracker.cc b/base/debug/activity_tracker.cc
index 6fcb1bcab891478de152c3863be1a872dcabb9f3..b348e51f6ed2923e2eb0f16a8e7f29814b0f876b 100644
--- a/base/debug/activity_tracker.cc
+++ b/base/debug/activity_tracker.cc
@@ -481,8 +481,8 @@ void GlobalActivityTracker::CreateWithFile(const FilePath& file_path,
{0, static_cast<int64_t>(size)},
MemoryMappedFile::READ_WRITE_EXTEND);
DCHECK(success);
- CreateWithAllocator(WrapUnique(new FilePersistentMemoryAllocator(
- std::move(mapped_file), size, id, name, false)),
+ CreateWithAllocator(MakeUnique<FilePersistentMemoryAllocator>(
+ std::move(mapped_file), size, id, name, false),
stack_depth);
}
#endif // !defined(OS_NACL)
@@ -493,8 +493,7 @@ void GlobalActivityTracker::CreateWithLocalMemory(size_t size,
StringPiece name,
int stack_depth) {
CreateWithAllocator(
- WrapUnique(new LocalPersistentMemoryAllocator(size, id, name)),
- stack_depth);
+ MakeUnique<LocalPersistentMemoryAllocator>(size, id, name), stack_depth);
}
ThreadActivityTracker* GlobalActivityTracker::CreateTrackerForCurrentThread() {

Powered by Google App Engine
This is Rietveld 408576698