summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-09 17:21:39 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-09 17:21:39 +0000
commit3c1cd7b1a53b887ff4ac4c658fabcd8e1399ca73 (patch)
tree1f83faa64982418daebc9f355cfe0a96224177c2 /content
parent137bd27e9e0ba03c3754b10fee1293b39016e59d (diff)
downloadchromium_src-3c1cd7b1a53b887ff4ac4c658fabcd8e1399ca73.zip
chromium_src-3c1cd7b1a53b887ff4ac4c658fabcd8e1399ca73.tar.gz
chromium_src-3c1cd7b1a53b887ff4ac4c658fabcd8e1399ca73.tar.bz2
Fix test issues seen when using WebContentsViewWin by default on Chrome.
-fix unittest crashes because in tests the parent window of the constrained window is a TCVWin which is not a Views::Widget. As a result FocusManager is sometimes NULL. -ensure that TabContentsViewWin destroys the HWND in its destructor. This is what TabContentsViewViews does indirectly through NativeWidgetWin. I'll enable TabContentsViewWin by default in a separate change. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9635020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/tab_contents/tab_contents_view_win.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/tab_contents/tab_contents_view_win.cc b/content/browser/tab_contents/tab_contents_view_win.cc
index 7304d7f..8401e3a 100644
--- a/content/browser/tab_contents/tab_contents_view_win.cc
+++ b/content/browser/tab_contents/tab_contents_view_win.cc
@@ -65,6 +65,8 @@ TabContentsViewWin::TabContentsViewWin(WebContents* web_contents,
}
TabContentsViewWin::~TabContentsViewWin() {
+ if (IsWindow(hwnd()))
+ DestroyWindow(hwnd());
}
void TabContentsViewWin::CreateView(const gfx::Size& initial_size) {