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

Unified Diff: ash/test/ash_test_base.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/system/web_notification/web_notification_tray_unittest.cc ('k') | ash/test/ui_controls_factory_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 93d770f601023725a854cfa1db020eba5c5ce8b4..6805926f6c0633a678ec1b3375270278dcb9d080 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -61,7 +61,7 @@ class AshEventGeneratorDelegate
// aura::test::EventGeneratorDelegateAura overrides:
aura::WindowTreeHost* GetHostAt(
const gfx::Point& point_in_screen) const override {
- gfx::Screen* screen = Shell::GetScreen();
+ gfx::Screen* screen = gfx::Screen::GetScreen();
gfx::Display display = screen->GetDisplayNearestPoint(point_in_screen);
return Shell::GetInstance()
->window_tree_host_manager()
@@ -244,8 +244,7 @@ aura::Window* AshTestBase::CreateTestWindowInShellWithDelegateAndType(
if (bounds.IsEmpty()) {
ParentWindowInPrimaryRootWindow(window);
} else {
- gfx::Display display =
- Shell::GetScreen()->GetDisplayMatching(bounds);
+ gfx::Display display = gfx::Screen::GetScreen()->GetDisplayMatching(bounds);
aura::Window* root = ash::Shell::GetInstance()
->window_tree_host_manager()
->GetRootWindowForDisplayId(display.id());
« no previous file with comments | « ash/system/web_notification/web_notification_tray_unittest.cc ('k') | ash/test/ui_controls_factory_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698