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

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: win fix 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..f35064ed1b37a871645055d4218c07b8e32b68df 100644
--- a/ash/system/tray/tray_bubble_view.cc
+++ b/ash/system/tray/tray_bubble_view.cc
@@ -409,7 +409,7 @@ 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 = ash::Shell::GetAshScreen()->GetPrimaryDisplay().bounds();
rect = gfx::Rect(
base::i18n::IsRTL() ? kPaddingFromRightEdgeOfScreenBottomAlignment :
rect.width() - kPaddingFromRightEdgeOfScreenBottomAlignment,

Powered by Google App Engine
This is Rietveld 408576698