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

Unified Diff: ash/screen_util.cc

Issue 2355063002: Separate ash::test::DisplayManagerTestApi from ash (Closed)
Patch Set: review comment Created 4 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
« no previous file with comments | « ash/screen_util.h ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_util.cc
diff --git a/ash/screen_util.cc b/ash/screen_util.cc
index 0a0460e23c072a9f96e4155fcbf0c6d32fe03006..ae79413a0e6fa97f818d8c78aa20d66153d6920d 100644
--- a/ash/screen_util.cc
+++ b/ash/screen_util.cc
@@ -72,13 +72,5 @@ gfx::Rect ScreenUtil::ConvertRectFromScreen(aura::Window* window,
}
// static
-const display::Display& ScreenUtil::GetSecondaryDisplay() {
- DisplayManager* display_manager = GetDisplayManager();
- CHECK_LE(2U, display_manager->GetNumDisplays());
- return display_manager->GetDisplayAt(0).id() ==
- display::Screen::GetScreen()->GetPrimaryDisplay().id()
- ? display_manager->GetDisplayAt(1)
- : display_manager->GetDisplayAt(0);
-}
} // namespace ash
« no previous file with comments | « ash/screen_util.h ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698