Revert "Revert "close devtools web contents when available to trigger cleanup""

This reverts commit 7f01bf4e73c188db2406ded1286b661c61c78bba.
This commit is contained in:
deepak1556 2017-03-19 01:25:22 +05:30
parent bbf477291f
commit 99fd1394e4

View file

@ -235,6 +235,8 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
} }
InspectableWebContentsImpl::~InspectableWebContentsImpl() { InspectableWebContentsImpl::~InspectableWebContentsImpl() {
if (devtools_web_contents_)
devtools_web_contents_->Close();
Observe(nullptr); Observe(nullptr);
} }