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

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

Issue 2787363002: Moves couple of WmShell methods to standalone functions (Closed)
Patch Set: feedback and fix applist 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/overview/window_selector.cc ('k') | ash/common/wm/system_modal_container_layout_manager.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 ac8f2a9068dc9deb2af02cfd24eb341289f5b22b..c910aabfb62cce6dfcff43fddcd89c1c938c7ca5 100644
--- a/ash/common/wm/panels/panel_layout_manager.cc
+++ b/ash/common/wm/panels/panel_layout_manager.cc
@@ -667,7 +667,7 @@ void PanelLayoutManager::Relayout() {
continue;
if (panel->IsFocused() ||
- panel->Contains(panel->GetShell()->GetFocusedWindow())) {
+ panel->Contains(WmWindow::Get(wm::GetFocusedWindow()))) {
DCHECK(!active_panel);
active_panel = panel;
}
« no previous file with comments | « ash/common/wm/overview/window_selector.cc ('k') | ash/common/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698