summaryrefslogtreecommitdiffstats
path: root/chrome/browser/jsmessage_box_handler_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/jsmessage_box_handler_win.cc')
-rw-r--r--chrome/browser/jsmessage_box_handler_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/jsmessage_box_handler_win.cc b/chrome/browser/jsmessage_box_handler_win.cc
index bf586e5..3497838 100644
--- a/chrome/browser/jsmessage_box_handler_win.cc
+++ b/chrome/browser/jsmessage_box_handler_win.cc
@@ -153,7 +153,7 @@ void JavascriptMessageBoxHandler::ShowModalDialog() {
}
web_contents_->Activate();
- HWND root_hwnd = GetAncestor(web_contents_->GetContainerHWND(), GA_ROOT);
+ HWND root_hwnd = GetAncestor(web_contents_->GetNativeView(), GA_ROOT);
dialog_ = views::Window::CreateChromeWindow(root_hwnd, gfx::Rect(), this);
dialog_->Show();
}