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

Unified Diff: ash/wm/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: cros 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
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_positioner_unittest.cc
diff --git a/ash/wm/window_positioner_unittest.cc b/ash/wm/window_positioner_unittest.cc
index 05067538ee431dbb89ff841d48552ba67350e967..01a3f94e008113d6675d3a63a4f37514cce4a29e 100644
--- a/ash/wm/window_positioner_unittest.cc
+++ b/ash/wm/window_positioner_unittest.cc
@@ -60,8 +60,10 @@ TEST_F(WindowPositionerTest, OpenDefaultWindowOnSecondDisplay) {
// The window should be in the 2nd display with the default size.
EXPECT_EQ("300x300", bounds.size().ToString());
#endif
- EXPECT_TRUE(Shell::GetScreen()->GetDisplayNearestWindow(
- second_root_window).bounds().Contains(bounds));
+ EXPECT_TRUE(gfx::Screen::GetScreen()
+ ->GetDisplayNearestWindow(second_root_window)
+ .bounds()
+ .Contains(bounds));
}
// Tests that second window inherits first window's maximized state as well as
@@ -169,7 +171,7 @@ TEST_F(WindowPositionerTest, FirstRunMaximizeWindowHighResloution) {
delegate->SetForceMaximizeOnFirstRun(true);
WindowPositioner::GetBoundsAndShowStateForNewWindow(
- Shell::GetScreen(), nullptr, false, ui::SHOW_STATE_DEFAULT,
+ gfx::Screen::GetScreen(), nullptr, false, ui::SHOW_STATE_DEFAULT,
&bounds_in_out, &show_state_out);
EXPECT_EQ(show_state_out, ui::SHOW_STATE_MAXIMIZED);
@@ -189,7 +191,7 @@ TEST_F(WindowPositionerTest, FirstRunMaximizeWindowLowResolution) {
delegate->SetForceMaximizeOnFirstRun(true);
WindowPositioner::GetBoundsAndShowStateForNewWindow(
- Shell::GetScreen(), nullptr, false, ui::SHOW_STATE_DEFAULT,
+ gfx::Screen::GetScreen(), nullptr, false, ui::SHOW_STATE_DEFAULT,
&bounds_in_out, &show_state_out);
EXPECT_EQ(show_state_out, ui::SHOW_STATE_MAXIMIZED);
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698