Index: ash/system/tray/system_tray_bubble.cc |
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc |
index 4e383f6d7252a5675e200981d1742fcd5aeef2cf..c45f608ea5ca006229d7e5061beca8f9a6dd2a02 100644 |
--- a/ash/system/tray/system_tray_bubble.cc |
+++ b/ash/system/tray/system_tray_bubble.cc |
@@ -351,7 +351,7 @@ gfx::Rect SystemTrayBubble::GetAnchorRect() const { |
gfx::Rect rect; |
views::Widget* widget = bubble_view()->anchor_widget(); |
if (widget->IsVisible()) { |
- rect = widget->GetWindowScreenBounds(); |
+ rect = widget->GetWindowBoundsInScreen(); |
if (anchor_type_ == ANCHOR_TYPE_TRAY) { |
if (tray_->shelf_alignment() == SHELF_ALIGNMENT_BOTTOM) { |
rect.Inset( |
@@ -373,7 +373,7 @@ gfx::Rect SystemTrayBubble::GetAnchorRect() const { |
// the anchor can include arrow on left or right, which should |
// be deducted out from the anchor rect. |
views::View* anchor_view = bubble_view()->anchor_view(); |
- rect = anchor_view->GetScreenBounds(); |
+ rect = anchor_view->GetBoundsInScreen(); |
gfx::Insets insets = anchor_view->GetInsets(); |
rect.Inset(insets); |
} |