From 99fd1394e4d3f5bccabf13ad7ca8aa791633c8f1 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Sun, 19 Mar 2017 01:25:22 +0530 Subject: [PATCH] Revert "Revert "close devtools web contents when available to trigger cleanup"" This reverts commit 7f01bf4e73c188db2406ded1286b661c61c78bba. --- brightray/browser/inspectable_web_contents_impl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 4f4100eb67..f95cc091c2 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -235,6 +235,8 @@ InspectableWebContentsImpl::InspectableWebContentsImpl( } InspectableWebContentsImpl::~InspectableWebContentsImpl() { + if (devtools_web_contents_) + devtools_web_contents_->Close(); Observe(nullptr); }