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() { |