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

Unified Diff: ash/shell.cc

Issue 2294853003: Break dependency between ash::DisplayManager and ash::ScreenAsh (Closed)
Patch Set: rebased Created 4 years, 3 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/display/screen_ash.cc ('k') | no next file » | 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 4a83bc5a4e97aabed13f9c9ef7b14edae52c7c32..7bbbf4e580b6357357e4065c5f5c0c40f1926f16 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -44,6 +44,7 @@
#include "ash/display/display_manager.h"
#include "ash/display/event_transformation_handler.h"
#include "ash/display/mouse_cursor_event_filter.h"
+#include "ash/display/screen_ash.h"
#include "ash/display/screen_position_controller.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/drag_drop/drag_drop_controller.h"
@@ -500,7 +501,7 @@ Shell::Shell(ShellDelegate* delegate, base::SequencedWorkerPool* blocking_pool)
blocking_pool_(blocking_pool) {
DCHECK(aura::Env::GetInstanceDontCreate());
gpu_support_.reset(wm_shell_->delegate()->CreateGPUSupport());
- display_manager_.reset(new DisplayManager);
+ display_manager_.reset(ScreenAsh::CreateDisplayManager());
window_tree_host_manager_.reset(new WindowTreeHostManager);
user_metrics_recorder_.reset(new UserMetricsRecorder);
@@ -641,7 +642,7 @@ Shell::~Shell() {
// WindowTreeHostManager before resetting |window_tree_host_manager_|, since
// destruction
// of its owned RootWindowControllers relies on the value.
- display_manager_->CreateScreenForShutdown();
+ ScreenAsh::CreateScreenForShutdown();
display_configuration_controller_.reset();
wm_shell_->Shutdown();
« no previous file with comments | « ash/display/screen_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698