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

Unified Diff: ash/accelerators/accelerator_controller_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: ash/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index b9304b6b1f530ad5a580ff8c5070dc658b923c20..bc7243a920bf82b585d7ef0439cb0c4624abf734 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -650,8 +650,9 @@ TEST_F(AcceleratorControllerTest, CenterWindowAccelerator) {
// Center the window using accelerator.
GetController()->PerformActionIfEnabled(WINDOW_POSITION_CENTER);
- gfx::Rect work_area =
- Shell::GetScreen()->GetDisplayNearestWindow(window.get()).work_area();
+ gfx::Rect work_area = gfx::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window.get())
+ .work_area();
gfx::Rect bounds = window->GetBoundsInScreen();
EXPECT_NEAR(bounds.x() - work_area.x(),
work_area.right() - bounds.right(),

Powered by Google App Engine
This is Rietveld 408576698