Index: chrome/browser/ui/views/hung_renderer_view.cc |
diff --git a/chrome/browser/ui/views/hung_renderer_view.cc b/chrome/browser/ui/views/hung_renderer_view.cc |
index 908aa60bacc139701273faadce5cbeb2b35bce2d..4117fc8024b6c3bb29849dfa526020a74b69dd14 100644 |
--- a/chrome/browser/ui/views/hung_renderer_view.cc |
+++ b/chrome/browser/ui/views/hung_renderer_view.cc |
@@ -548,14 +548,14 @@ void HungRendererDialogView::CreateKillButtonView() { |
gfx::Rect HungRendererDialogView::GetDisplayBounds( |
WebContents* contents) { |
#if defined(USE_AURA) |
- gfx::Rect contents_bounds(contents->GetNativeView()->GetRootWindowBounds()); |
+ gfx::Rect contents_bounds(contents->GetNativeView()->GetBoundsInRootWindow()); |
#elif defined(OS_WIN) |
HWND contents_hwnd = contents->GetNativeView(); |
RECT contents_bounds_rect; |
GetWindowRect(contents_hwnd, &contents_bounds_rect); |
gfx::Rect contents_bounds(contents_bounds_rect); |
#endif |
- gfx::Rect window_bounds = GetWidget()->GetWindowScreenBounds(); |
+ gfx::Rect window_bounds = GetWidget()->GetWindowBoundsInScreen(); |
int window_x = contents_bounds.x() + |
(contents_bounds.width() - window_bounds.width()) / 2; |