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

Unified Diff: ash/test/ash_test_base.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/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index d03b281bfb19446218071638d3e4190ccea85c30..e924fcef4378dfed32267acd7568234eb43912e3 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -80,7 +80,8 @@ void AshTestBase::TearDown() {
void AshTestBase::ChangeDisplayConfig(float scale,
const gfx::Rect& bounds_in_pixel) {
- gfx::Display display = gfx::Display(gfx::Screen::GetPrimaryDisplay().id());
+ gfx::Display display =
+ gfx::Display(ash::Shell::GetAshScreen()->GetPrimaryDisplay().id());
display.SetScaleAndBounds(scale, bounds_in_pixel);
std::vector<gfx::Display> displays;
displays.push_back(display);

Powered by Google App Engine
This is Rietveld 408576698