Index: src/inspector/v8-heap-profiler-agent-impl.cc |
diff --git a/src/inspector/v8-heap-profiler-agent-impl.cc b/src/inspector/v8-heap-profiler-agent-impl.cc |
index d42859d52c2f2e653a1097397c79d7bfd6df2487..b89aa19fd11240762d6742c4f8067000ac987337 100644 |
--- a/src/inspector/v8-heap-profiler-agent-impl.cc |
+++ b/src/inspector/v8-heap-profiler-agent-impl.cc |
@@ -216,7 +216,7 @@ Response V8HeapProfilerAgentImpl::takeHeapSnapshot(Maybe<bool> reportProgress) { |
if (!profiler) return Response::Error("Cannot access v8 heap profiler"); |
std::unique_ptr<HeapSnapshotProgress> progress; |
if (reportProgress.fromMaybe(false)) |
- progress = wrapUnique(new HeapSnapshotProgress(&m_frontend)); |
+ progress.reset(new HeapSnapshotProgress(&m_frontend)); |
GlobalObjectNameResolver resolver(m_session); |
const v8::HeapSnapshot* snapshot = |
@@ -260,7 +260,8 @@ Response V8HeapProfilerAgentImpl::addInspectedHeapObject( |
if (!m_session->inspector()->client()->isInspectableHeapObject(heapObject)) |
return Response::Error("Object is not available"); |
- m_session->addInspectedObject(wrapUnique(new InspectableHeapObject(id))); |
+ m_session->addInspectedObject( |
+ std::unique_ptr<InspectableHeapObject>(new InspectableHeapObject(id))); |
return Response::OK(); |
} |