| Index: base/debug/activity_analyzer_unittest.cc
|
| diff --git a/base/debug/activity_analyzer_unittest.cc b/base/debug/activity_analyzer_unittest.cc
|
| index 6fb6b3f436089b791f4200cee07b43a2e1729639..953a52f02d5cafce56fe68828f1babafa1dd501d 100644
|
| --- a/base/debug/activity_analyzer_unittest.cc
|
| +++ b/base/debug/activity_analyzer_unittest.cc
|
| @@ -61,7 +61,7 @@ class ActivityAnalyzerTest : public testing::Test {
|
|
|
| std::unique_ptr<ThreadActivityTracker> CreateActivityTracker() {
|
| std::unique_ptr<char[]> memory(new char[kStackSize]);
|
| - return WrapUnique(new TestActivityTracker(std::move(memory), kStackSize));
|
| + return MakeUnique<TestActivityTracker>(std::move(memory), kStackSize);
|
| }
|
|
|
| static void DoNothing() {}
|
| @@ -142,9 +142,8 @@ TEST_F(ActivityAnalyzerTest, GlobalAnalyzerConstruction) {
|
|
|
| PersistentMemoryAllocator* allocator =
|
| GlobalActivityTracker::Get()->allocator();
|
| - GlobalActivityAnalyzer analyzer(WrapUnique(
|
| - new PersistentMemoryAllocator(const_cast<void*>(allocator->data()),
|
| - allocator->size(), 0, 0, "", true)));
|
| + GlobalActivityAnalyzer analyzer(MakeUnique<PersistentMemoryAllocator>(
|
| + const_cast<void*>(allocator->data()), allocator->size(), 0, 0, "", true));
|
|
|
| // The only thread at thois point is the test thread.
|
| ThreadActivityAnalyzer* ta1 = analyzer.GetFirstAnalyzer();
|
|
|