From 92dd9b59eb0c2146c7869dfda4b935c1ce663f10 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Tue, 22 May 2018 14:20:24 -0700 Subject: inspector: get rid of the make_unique PR-URL: https://github.com/nodejs/node/pull/20895 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Anatoli Papirovski Reviewed-By: Tiancheng "Timothy" Gu --- src/inspector_agent.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inspector_agent.cc') diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index 50aa23b63cd..162bc6770e5 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -198,8 +198,8 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel, std::unique_ptr delegate) : delegate_(std::move(delegate)) { session_ = inspector->connect(1, this, StringView()); - node_dispatcher_ = std::make_unique(this); - tracing_agent_ = std::make_unique(env); + node_dispatcher_.reset(new protocol::UberDispatcher(this)); + tracing_agent_.reset(new protocol::TracingAgent(env)); tracing_agent_->Wire(node_dispatcher_.get()); } -- cgit v1.2.3