Revert "Revert "close devtools web contents when available to trigger cleanup""
This reverts commit 7f01bf4e73c188db2406ded1286b661c61c78bba.
This commit is contained in:
parent
bbf477291f
commit
99fd1394e4
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
|
||||||
}
|
}
|
||||||
|
|
||||||
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
|
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
|
||||||
|
if (devtools_web_contents_)
|
||||||
|
devtools_web_contents_->Close();
|
||||||
Observe(nullptr);
|
Observe(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue