Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: ash/system/tray/tray_bubble_view.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tidy Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698