From 9b82e7d27b077e98a7bad94fb3216af7f45550ee Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Wed, 23 Jan 2019 00:24:18 +0530 Subject: [PATCH] Change DevToolsEmbedderMessageDispatcher to use unique_ptr instead of raw pointers. https://chromium-review.googlesource.com/c/chromium/src/+/1382701 --- atom/browser/ui/inspectable_web_contents_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/ui/inspectable_web_contents_impl.cc b/atom/browser/ui/inspectable_web_contents_impl.cc index 27b90fcaf681..08e51b118e05 100644 --- a/atom/browser/ui/inspectable_web_contents_impl.cc +++ b/atom/browser/ui/inspectable_web_contents_impl.cc @@ -321,8 +321,8 @@ void InspectableWebContentsImpl::ShowDevTools(bool activate) { // Show devtools only after it has done loading, this is to make sure the // SetIsDocked is called *BEFORE* ShowDevTools. - embedder_message_dispatcher_.reset( - DevToolsEmbedderMessageDispatcher::CreateForDevToolsFrontend(this)); + embedder_message_dispatcher_ = + DevToolsEmbedderMessageDispatcher::CreateForDevToolsFrontend(this); if (!external_devtools_web_contents_) { // no external devtools managed_devtools_web_contents_ = content::WebContents::Create(