Index: base/metrics/persistent_sample_map_unittest.cc |
diff --git a/base/metrics/persistent_sample_map_unittest.cc b/base/metrics/persistent_sample_map_unittest.cc |
index c3f2474b8617ef30a6cb60c12626cc836b70987d..8c3ac25dea4863bbad3446ed49b383f8b8b37fb8 100644 |
--- a/base/metrics/persistent_sample_map_unittest.cc |
+++ b/base/metrics/persistent_sample_map_unittest.cc |
@@ -16,16 +16,16 @@ namespace { |
std::unique_ptr<PersistentHistogramAllocator> CreateHistogramAllocator( |
size_t bytes) { |
- return WrapUnique(new PersistentHistogramAllocator( |
- WrapUnique(new LocalPersistentMemoryAllocator(bytes, 0, "")))); |
+ return MakeUnique<PersistentHistogramAllocator>( |
+ MakeUnique<LocalPersistentMemoryAllocator>(bytes, 0, "")); |
} |
std::unique_ptr<PersistentHistogramAllocator> DuplicateHistogramAllocator( |
PersistentHistogramAllocator* original) { |
- return WrapUnique( |
- new PersistentHistogramAllocator(WrapUnique(new PersistentMemoryAllocator( |
+ return MakeUnique<PersistentHistogramAllocator>( |
+ MakeUnique<PersistentMemoryAllocator>( |
const_cast<void*>(original->data()), original->length(), 0, |
- original->Id(), original->Name(), false)))); |
+ original->Id(), original->Name(), false)); |
} |
TEST(PersistentSampleMapTest, AccumulateTest) { |