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

Unified Diff: ash/wm/immersive_context_ash.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/wm/drag_window_controller.cc ('k') | ash/wm/mru_window_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/immersive_context_ash.cc
diff --git a/ash/wm/immersive_context_ash.cc b/ash/wm/immersive_context_ash.cc
index 580d0777b61ca37891c5e3736845610d5cf231b5..a7345ca297f6ffe8e6a6b5efbbae0b2b7db55e78 100644
--- a/ash/wm/immersive_context_ash.cc
+++ b/ash/wm/immersive_context_ash.cc
@@ -6,6 +6,7 @@
#include "ash/shared/immersive_fullscreen_controller.h"
#include "ash/shelf/wm_shelf.h"
+#include "ash/shell.h"
#include "ash/shell_port.h"
#include "ash/wm/window_state.h"
#include "ash/wm/window_util.h"
@@ -37,7 +38,7 @@ void ImmersiveContextAsh::OnEnteringOrExitingImmersive(
// Update the window's immersive mode state for the window manager.
window_state->set_in_immersive_fullscreen(entering);
- for (WmWindow* root_window : ShellPort::Get()->GetAllRootWindows())
+ for (aura::Window* root_window : Shell::GetAllRootWindows())
WmShelf::ForWindow(root_window)->UpdateVisibilityState();
}
« no previous file with comments | « ash/wm/drag_window_controller.cc ('k') | ash/wm/mru_window_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698