Index: base/metrics/persistent_histogram_allocator_unittest.cc |
diff --git a/base/metrics/persistent_histogram_allocator_unittest.cc b/base/metrics/persistent_histogram_allocator_unittest.cc |
index 6f9ed96481cace40703b884a5e06890e33385944..9604ce6b39b14e704b93996a420eca73fc0ea0ad 100644 |
--- a/base/metrics/persistent_histogram_allocator_unittest.cc |
+++ b/base/metrics/persistent_histogram_allocator_unittest.cc |
@@ -102,9 +102,8 @@ TEST_F(PersistentHistogramAllocatorTest, CreateAndIterateTest) { |
// Create a second allocator and have it access the memory of the first. |
std::unique_ptr<HistogramBase> recovered; |
- PersistentHistogramAllocator recovery( |
- WrapUnique(new PersistentMemoryAllocator( |
- allocator_memory_.get(), kAllocatorMemorySize, 0, 0, "", false))); |
+ PersistentHistogramAllocator recovery(MakeUnique<PersistentMemoryAllocator>( |
+ allocator_memory_.get(), kAllocatorMemorySize, 0, 0, "", false)); |
PersistentHistogramAllocator::Iterator histogram_iter(&recovery); |
recovered = histogram_iter.GetNext(); |
@@ -181,9 +180,8 @@ TEST_F(PersistentHistogramAllocatorTest, StatisticsRecorderTest) { |
// Create a second allocator and have it access the memory of the first. |
std::unique_ptr<HistogramBase> recovered; |
- PersistentHistogramAllocator recovery( |
- WrapUnique(new PersistentMemoryAllocator( |
- allocator_memory_.get(), kAllocatorMemorySize, 0, 0, "", false))); |
+ PersistentHistogramAllocator recovery(MakeUnique<PersistentMemoryAllocator>( |
+ allocator_memory_.get(), kAllocatorMemorySize, 0, 0, "", false)); |
PersistentHistogramAllocator::Iterator histogram_iter(&recovery); |
recovered = histogram_iter.GetNext(); |