Chromium Code Reviews| Index: ash/shelf/app_list_shelf_item_delegate.cc |
| diff --git a/ash/shelf/app_list_shelf_item_delegate.cc b/ash/shelf/app_list_shelf_item_delegate.cc |
| index 71e0007b817d083eece1d348ee3d3bc262c60785..71fbe90050ed57e0c7784b3558b5d69c84b71a70 100644 |
| --- a/ash/shelf/app_list_shelf_item_delegate.cc |
| +++ b/ash/shelf/app_list_shelf_item_delegate.cc |
| @@ -24,7 +24,10 @@ AppListShelfItemDelegate::~AppListShelfItemDelegate() { |
| bool AppListShelfItemDelegate::ItemSelected(const ui::Event& event) { |
| // Pass NULL here to show the app list in the currently active RootWindow. |
| - Shell::GetInstance()->ToggleAppList(NULL); |
| + if (Shell::GetInstance()->GetAppListTargetVisibility()) |
|
Matt Giuca
2014/08/14 04:17:07
... here's the second one.
calamity
2014/08/14 05:00:59
Done.
|
| + Shell::GetInstance()->DismissAppList(); |
| + else |
| + Shell::GetInstance()->ShowAppList(NULL); |
| return false; |
| } |