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

Unified Diff: ash/shell/window_watcher.cc

Issue 2779653003: WindowTreeHostManager::GetRootWindowForDisplayId -> WmShell::GetRoo... (Closed)
Patch Set: Created 3 years, 9 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/app_list/app_list_presenter_delegate.cc ('k') | ash/sticky_keys/sticky_keys_overlay_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 196997cc58f781153e207f33202a5fa514d4ca89..255153eeaf5197ea577326449f954f8d71a270f1 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -10,7 +10,6 @@
#include "ash/common/shelf/shelf_widget.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/display/window_tree_host_manager.h"
#include "ash/public/cpp/shelf_item.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shell.h"
@@ -135,10 +134,8 @@ void WindowWatcher::OnWillRemoveWindow(aura::Window* window) {
}
void WindowWatcher::OnDisplayAdded(const display::Display& new_display) {
- aura::Window* root = Shell::GetInstance()
- ->window_tree_host_manager()
- ->GetRootWindowForDisplayId(new_display.id());
- workspace_window_watcher_->RootWindowAdded(root);
+ WmWindow* root = WmShell::Get()->GetRootWindowForDisplayId(new_display.id());
+ workspace_window_watcher_->RootWindowAdded(root->aura_window());
}
void WindowWatcher::OnDisplayRemoved(const display::Display& old_display) {
« no previous file with comments | « ash/app_list/app_list_presenter_delegate.cc ('k') | ash/sticky_keys/sticky_keys_overlay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698