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

Unified Diff: ash/root_window_controller.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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/mus/window_manager.cc ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index cc881532a7bebacc3a79c705c90430fd6bde8fa5..9e9cb21aeb70fa70b82e0387332e1b3305df9802 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -727,7 +727,6 @@ RootWindowController::RootWindowController(
void RootWindowController::Init(RootWindowType root_window_type) {
aura::Window* root_window = GetRootWindow();
- ShellPort* shell_port = ShellPort::Get();
Shell* shell = Shell::Get();
shell->InitRootWindow(root_window);
@@ -739,7 +738,7 @@ void RootWindowController::Init(RootWindowType root_window_type) {
InitLayoutManagers();
InitTouchHuds();
- if (shell_port->GetPrimaryRootWindowController()
+ if (Shell::GetPrimaryRootWindowController()
->GetSystemModalLayoutManager(nullptr)
->has_window_dimmer()) {
GetSystemModalLayoutManager(nullptr)->CreateModalBackground();
@@ -1062,11 +1061,11 @@ void RootWindowController::ResetRootForNewWindowsIfNecessary() {
// being removed triggers a relayout of the shelf it will try to build a
// window list adding windows from the target root window's containers which
// may have already gone away.
- WmWindow* root = GetWindow();
- if (Shell::GetWmRootWindowForNewWindows() == root) {
+ aura::Window* root = GetRootWindow();
+ if (Shell::GetRootWindowForNewWindows() == root) {
// The root window for new windows is being destroyed. Switch to the primary
// root window if possible.
- WmWindow* primary_root = ShellPort::Get()->GetPrimaryRootWindow();
+ aura::Window* primary_root = Shell::GetPrimaryRootWindow();
Shell::Get()->set_root_window_for_new_windows(
primary_root == root ? nullptr : primary_root);
}
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698