Change DevToolsEmbedderMessageDispatcher to use unique_ptr instead of raw pointers.

https://chromium-review.googlesource.com/c/chromium/src/+/1382701
This commit is contained in:
deepak1556 2019-01-23 00:24:18 +05:30
parent 61c46c6313
commit 9b82e7d27b

View file

@ -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(