Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc |
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc |
index 2a1b343f1610d65a63be6882cab58845d5e8c3e4..b06e177c933440081bfbd82291005438ad26caed 100644 |
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc |
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc |
@@ -22,7 +22,7 @@ |
#if defined(USE_ASH) |
#include "ash/common/shelf/shelf_delegate.h" // nogncheck |
-#include "ash/common/wm_shell.h" // nogncheck |
+#include "ash/shell.h" // nogncheck |
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h" // nogncheck |
#endif |
@@ -90,7 +90,7 @@ void AppInfoFooterPanel::UpdatePinButtons(bool focus_visible_button) { |
#if defined(USE_ASH) |
if (pin_to_shelf_button_ && unpin_from_shelf_button_) { |
bool is_pinned = |
- !ash::WmShell::Get()->shelf_delegate()->IsAppPinned(app_->id()); |
+ !ash::Shell::Get()->shelf_delegate()->IsAppPinned(app_->id()); |
pin_to_shelf_button_->SetVisible(is_pinned); |
unpin_from_shelf_button_->SetVisible(!is_pinned); |
@@ -152,7 +152,7 @@ bool AppInfoFooterPanel::CanCreateShortcuts() const { |
#if defined(USE_ASH) |
void AppInfoFooterPanel::SetPinnedToShelf(bool value) { |
DCHECK(CanSetPinnedToShelf()); |
- ash::ShelfDelegate* shelf_delegate = ash::WmShell::Get()->shelf_delegate(); |
+ ash::ShelfDelegate* shelf_delegate = ash::Shell::Get()->shelf_delegate(); |
DCHECK(shelf_delegate); |
if (value) |
shelf_delegate->PinAppWithID(app_->id()); |
@@ -165,7 +165,7 @@ void AppInfoFooterPanel::SetPinnedToShelf(bool value) { |
bool AppInfoFooterPanel::CanSetPinnedToShelf() const { |
// Non-Ash platforms don't have a shelf. |
- if (!ash::WmShell::HasInstance()) |
+ if (!ash::Shell::HasInstance()) |
return false; |
// The Chrome app can't be unpinned, and extensions can't be pinned. |