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

Unified Diff: ash/common/wm/panels/panel_layout_manager.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback 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/common/wm/maximize_mode/maximize_mode_window_manager.cc ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/panels/panel_layout_manager.cc
diff --git a/ash/common/wm/panels/panel_layout_manager.cc b/ash/common/wm/panels/panel_layout_manager.cc
index cd016d69ead1384919e845b1144fe52faea27ee1..ac8f2a9068dc9deb2af02cfd24eb341289f5b22b 100644
--- a/ash/common/wm/panels/panel_layout_manager.cc
+++ b/ash/common/wm/panels/panel_layout_manager.cc
@@ -258,9 +258,8 @@ PanelLayoutManager::PanelLayoutManager(WmWindow* panel_container)
keyboard_observer_(this),
weak_factory_(this) {
DCHECK(panel_container);
- WmShell* shell = panel_container->GetShell();
Shell::GetInstance()->activation_client()->AddObserver(this);
- shell->AddDisplayObserver(this);
+ WmShell::Get()->AddDisplayObserver(this);
Shell::GetInstance()->AddShellObserver(this);
}
@@ -616,7 +615,7 @@ void PanelLayoutManager::Relayout() {
// when the WindowSelectorController is restoring minimized windows so that
// they actually become visible.
WindowSelectorController* window_selector_controller =
- WmShell::Get()->window_selector_controller();
+ Shell::Get()->window_selector_controller();
if (in_layout_ ||
(window_selector_controller->IsSelecting() &&
!window_selector_controller->IsRestoringMinimizedWindows())) {
« no previous file with comments | « ash/common/wm/maximize_mode/maximize_mode_window_manager.cc ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698