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

Unified Diff: ash/display/display_controller.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: fix some new gfx::Screen additions 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/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index b12b4f22bbc3e044f4ac4ac51114cac8492b9d03..d99c269b84381d76406a7368379af8fcaf9834d7 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -491,10 +491,10 @@ aura::RootWindow* DisplayController::AddRootWindowForDisplay(
}
void DisplayController::UpdateDisplayBoundsForLayout() {
- if (gfx::Screen::GetNumDisplays() <= 1)
+ if (Shell::GetAshScreen()->GetNumDisplays() <= 1)
return;
- DCHECK_EQ(2, gfx::Screen::GetNumDisplays());
+ DCHECK_EQ(2, Shell::GetAshScreen()->GetNumDisplays());
const gfx::Rect& primary_bounds = GetPrimaryDisplay().bounds();
gfx::Display* secondary_display = GetSecondaryDisplay();

Powered by Google App Engine
This is Rietveld 408576698