diff options
Diffstat (limited to 'chrome/browser/views/hwnd_html_view.cc')
-rw-r--r-- | chrome/browser/views/hwnd_html_view.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/hwnd_html_view.cc b/chrome/browser/views/hwnd_html_view.cc index 1661624..41fc7c6 100644 --- a/chrome/browser/views/hwnd_html_view.cc +++ b/chrome/browser/views/hwnd_html_view.cc @@ -8,7 +8,7 @@ #include "chrome/browser/render_widget_host_view_win.h" #include "chrome/browser/render_view_host_delegate.h" #include "chrome/browser/site_instance.h" -#include "chrome/views/container.h" +#include "chrome/views/widget.h" HWNDHtmlView::~HWNDHtmlView() { if (render_view_host_) { @@ -47,6 +47,6 @@ void HWNDHtmlView::Init(HWND parent_hwnd) { void HWNDHtmlView::ViewHierarchyChanged(bool is_add, View* parent, View* child) { - if (is_add && GetContainer() && !initialized_) - Init(GetContainer()->GetHWND()); + if (is_add && GetWidget() && !initialized_) + Init(GetWidget()->GetHWND()); } |