Index: ash/system/tray/tray_bubble_view.cc |
diff --git a/ash/system/tray/tray_bubble_view.cc b/ash/system/tray/tray_bubble_view.cc |
index 41bfc6fe98f9e5aa315722db3dd6d03ba3381a83..a4518d7616c4ec2edc8abfc94ab477e124050838 100644 |
--- a/ash/system/tray/tray_bubble_view.cc |
+++ b/ash/system/tray/tray_bubble_view.cc |
@@ -409,7 +409,8 @@ gfx::Rect TrayBubbleView::GetAnchorRect() { |
// TODO(jennyz): May need to add left/right alignment in the following code. |
if (rect.IsEmpty()) { |
- rect = gfx::Screen::GetPrimaryDisplay().bounds(); |
+ rect = gfx::Screen::GetPrimaryDisplay( |
+ ash::Shell::GetRootNativeView()).bounds(); |
rect = gfx::Rect( |
base::i18n::IsRTL() ? kPaddingFromRightEdgeOfScreenBottomAlignment : |
rect.width() - kPaddingFromRightEdgeOfScreenBottomAlignment, |