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

Unified Diff: ash/root_window_controller.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Sync and rebase. 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
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index ab4e14c00d7ca1c3c2591422ea3786d594bc8733..eaeb93bf88479d7f21751f50f7fbb100805ae009 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -740,7 +740,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);
@@ -752,7 +751,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();
@@ -1075,11 +1074,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);
}

Powered by Google App Engine
This is Rietveld 408576698