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

Unified Diff: chrome/browser/ui/ash/window_positioner_unittest.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: . Created 4 years, 11 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: chrome/browser/ui/ash/window_positioner_unittest.cc
diff --git a/chrome/browser/ui/ash/window_positioner_unittest.cc b/chrome/browser/ui/ash/window_positioner_unittest.cc
index b36dd53bd20603d3c4cbb54cbc197a21d3d9de74..8ef430da3918e787104d431e7866da39caca0c43 100644
--- a/chrome/browser/ui/ash/window_positioner_unittest.cc
+++ b/chrome/browser/ui/ash/window_positioner_unittest.cc
@@ -104,7 +104,7 @@ int AlignToGridRoundDown(int location, int grid_size) {
TEST_F(WindowPositionerTest, cascading) {
const gfx::Rect work_area =
- Shell::GetScreen()->GetPrimaryDisplay().work_area();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
// First see that the window will cascade down when there is no space.
window()->SetBounds(work_area);
@@ -165,7 +165,7 @@ TEST_F(WindowPositionerTest, cascading) {
TEST_F(WindowPositionerTest, filling) {
const gfx::Rect work_area =
- Shell::GetScreen()->GetPrimaryDisplay().work_area();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
gfx::Rect popup_position(0, 0, 256, 128);
// Leave space on the left and the right and see if we fill top to bottom.
window()->SetBounds(gfx::Rect(work_area.x() + popup_position.width(),
@@ -220,7 +220,7 @@ TEST_F(WindowPositionerTest, filling) {
TEST_F(WindowPositionerTest, biggerThenBorder) {
const gfx::Rect work_area =
- Shell::GetScreen()->GetPrimaryDisplay().work_area();
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
gfx::Rect pop_position(0, 0, work_area.width(), work_area.height());

Powered by Google App Engine
This is Rietveld 408576698