| Index: ash/app_list/app_list_presenter_delegate.cc
|
| diff --git a/ash/app_list/app_list_presenter_delegate.cc b/ash/app_list/app_list_presenter_delegate.cc
|
| index 0bbb1c18acfe2b35a5501b6ce39a07356125bfe2..eed2279345d7a946cce496c45b05d184d52e1b19 100644
|
| --- a/ash/app_list/app_list_presenter_delegate.cc
|
| +++ b/ash/app_list/app_list_presenter_delegate.cc
|
| @@ -14,6 +14,7 @@
|
| #include "ash/shelf/shelf_layout_manager.h"
|
| #include "ash/shelf/shelf_widget.h"
|
| #include "ash/shell.h"
|
| +#include "ash/shell_observer.h"
|
| #include "ash/shell_port.h"
|
| #include "ash/wm/maximize_mode/maximize_mode_controller.h"
|
| #include "base/command_line.h"
|
| @@ -119,26 +120,12 @@ void AppListPresenterDelegate::Init(app_list::AppListView* view,
|
|
|
| void AppListPresenterDelegate::OnShown(int64_t display_id) {
|
| is_visible_ = true;
|
| - // Update applist button status when app list visibility is changed.
|
| - aura::Window* root_window =
|
| - ShellPort::Get()->GetRootWindowForDisplayId(display_id);
|
| - AppListButton* app_list_button =
|
| - Shelf::ForWindow(root_window)->shelf_widget()->GetAppListButton();
|
| - if (app_list_button)
|
| - app_list_button->OnAppListShown();
|
| }
|
|
|
| void AppListPresenterDelegate::OnDismissed() {
|
| DCHECK(is_visible_);
|
| DCHECK(view_);
|
| -
|
| is_visible_ = false;
|
| -
|
| - // Update applist button status when app list visibility is changed.
|
| - Shelf* shelf = Shelf::ForWindow(view_->GetWidget()->GetNativeWindow());
|
| - AppListButton* app_list_button = shelf->shelf_widget()->GetAppListButton();
|
| - if (app_list_button)
|
| - app_list_button->OnAppListDismissed();
|
| }
|
|
|
| void AppListPresenterDelegate::UpdateBounds() {
|
|
|