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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 2169533002: mash: Migrate shelf app list button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move files, cleanup Created 4 years, 5 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/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index d89ffb22ce78178bb9a30a3f6e0ad4d961969b40..7bda0c509c65a9412aad9a3bab845cd76cf88f5b 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -1031,10 +1031,9 @@ ShelfAutoHideState ShelfLayoutManager::CalculateAutoHideState(
!shelf_widget_->shelf())
return SHELF_AUTO_HIDE_HIDDEN;
- Shell* shell = Shell::GetInstance();
// Unhide the shelf only on the active screen when the AppList is shown
// (crbug.com/312445).
- if (shell->GetAppListTargetVisibility()) {
+ if (WmShell::Get()->GetAppListTargetVisibility()) {
aura::Window* active_window = wm::GetActiveWindow();
aura::Window* shelf_window = shelf_widget_->GetNativeWindow();
if (active_window && shelf_window &&

Powered by Google App Engine
This is Rietveld 408576698