Chromium Code Reviews| 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 2bebb9ce09fa2cf5be1a804eb9e1a19fe25b76c9..3be724810ad1df6ce4a6394b5f4b2cb025548fef 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 |
| @@ -23,7 +23,7 @@ |
| #if defined(USE_ASH) |
| #include "ash/shelf/shelf_delegate.h" |
| #include "ash/shell.h" |
| -#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| +#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_util.h" |
| #endif |
| AppInfoFooterPanel::AppInfoFooterPanel(gfx::NativeWindow parent_window, |
| @@ -171,8 +171,8 @@ bool AppInfoFooterPanel::CanSetPinnedToShelf() const { |
| // The Chrome app can't be unpinned, and extensions can't be pinned. |
| return app_->id() != extension_misc::kChromeAppId && !app_->is_extension() && |
| - (!ChromeLauncherController::instance() || |
| - ChromeLauncherController::instance()->GetPinnable(app_->id()) == |
| + (GetPinnableForAppID( |
| + app_->id(), profile_) == |
|
msw
2016/06/27 18:50:26
nit: fix line wrapping. Try "git cl format chrome/
|
| AppListControllerDelegate::PIN_EDITABLE); |
| } |
| #endif // USE_ASH |