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

Unified Diff: ash/shell.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/shell.h ('k') | ash/shell/content/client/shell_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index f31c36d7a0a04674c2edf726cd2a6ee5ebf4026b..391a935a8837c75d3b98443b921d419a398139e2 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -242,11 +242,6 @@ aura::Window* Shell::GetTargetRootWindow() {
}
// static
-gfx::Screen* Shell::GetScreen() {
- return gfx::Screen::GetScreen();
-}
-
-// static
aura::Window::Windows Shell::GetAllRootWindows() {
CHECK(HasInstance());
return Shell::GetInstance()->window_tree_host_manager()->GetAllRootWindows();
@@ -910,7 +905,7 @@ void Shell::Init(const ShellInitParams& init_params) {
new ResolutionNotificationController);
#endif
- cursor_manager_.SetDisplay(GetScreen()->GetPrimaryDisplay());
+ cursor_manager_.SetDisplay(gfx::Screen::GetScreen()->GetPrimaryDisplay());
nested_accelerator_controller_.reset(
new ::wm::NestedAcceleratorController(new NestedAcceleratorDelegate));
« no previous file with comments | « ash/shell.h ('k') | ash/shell/content/client/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698