summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/ui/views/tab_contents/tab_contents_container.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
index 793e53c..47ed229 100644
--- a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
@@ -39,6 +39,9 @@ void TabContentsContainer::ChangeTabContents(TabContents* contents) {
if (tab_contents_) {
#if !defined(TOUCH_UI)
native_container_->DetachContents(tab_contents_);
+#else
+ views::View *v = static_cast<TabContentsViewViews*>(tab_contents_->view());
+ RemoveChildView(v);
#endif
tab_contents_->WasHidden();
RemoveObservers();