summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tab_contents_container_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/tab_contents_container_view.cc')
-rw-r--r--chrome/browser/views/tab_contents_container_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/tab_contents_container_view.cc b/chrome/browser/views/tab_contents_container_view.cc
index c0c013b6..27e664e 100644
--- a/chrome/browser/views/tab_contents_container_view.cc
+++ b/chrome/browser/views/tab_contents_container_view.cc
@@ -13,8 +13,8 @@
#include "chrome/browser/tab_contents.h"
#include "chrome/browser/view_ids.h"
#include "chrome/browser/web_contents.h"
-#include "chrome/views/container.h"
#include "chrome/views/root_view.h"
+#include "chrome/views/widget.h"
using views::FocusTraversable;
using views::FocusManager;
@@ -235,7 +235,7 @@ void TabContentsContainerView::RenderViewHostChanged(RenderViewHost* old_host,
// If we are focused, we need to pass the focus to the new RenderViewHost.
FocusManager* focus_manager =
- FocusManager::GetFocusManager(GetRootView()->GetContainer()->GetHWND());
+ FocusManager::GetFocusManager(GetRootView()->GetWidget()->GetHWND());
if (focus_manager->GetFocusedView() == this)
Focus();
}