From 2d65bd4b0ae85027f70cd502876d258b77383ec7 Mon Sep 17 00:00:00 2001 From: "dgozman@chromium.org" Date: Wed, 16 Jul 2014 04:58:19 +0000 Subject: [PATCH] [DevTools] Fix undocked DevToolsWindow closing. Test will follow in next patch, as it requires testing code refactoring. BUG=393566,393855 Review URL: https://codereview.chromium.org/395793003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283345 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/devtools/devtools_window.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/browser/devtools/devtools_window.cc b/chrome/browser/devtools/devtools_window.cc index b16918209136..608ac7a7a65c 100644 --- a/chrome/browser/devtools/devtools_window.cc +++ b/chrome/browser/devtools/devtools_window.cc @@ -305,6 +305,8 @@ WebContents* DevToolsWindow::ObserverWithAccessor::GetWebContents() { const char DevToolsWindow::kDevToolsApp[] = "DevToolsApp"; DevToolsWindow::~DevToolsWindow() { + life_stage_ = kClosing; + UpdateBrowserWindow(); UpdateBrowserToolbar(); -- 2.11.4.GIT