Change DevToolsEmbedderMessageDispatcher to use unique_ptr instead of raw pointers.
https://chromium-review.googlesource.com/c/chromium/src/+/1382701
This commit is contained in:
parent
61c46c6313
commit
9b82e7d27b
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue