Chromium Code Reviews| Index: chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
| diff --git a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
| index 2fb7881d2c80780814361d2480ad21450dda1787..ce0b91675662659346c9579dd53be708c8c5f237 100644 |
| --- a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
| +++ b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
| @@ -91,6 +91,20 @@ void AppListServiceAsh::ShowForCustomLauncherPage(Profile* /*profile*/) { |
| ShowAndSwitchToState(app_list::AppListModel::STATE_CUSTOM_LAUNCHER_PAGE); |
| } |
| +void AppListServiceAsh::HideLauncherPageIfShowing() { |
| + app_list::AppListView* app_list_view = |
| + ash::Shell::GetInstance()->GetAppListView(); |
| + if (!app_list_view) |
| + return; |
| + |
| + app_list::ContentsView* contents_view = |
| + app_list_view->app_list_main_view()->contents_view(); |
| + if (contents_view->IsStateActive( |
| + app_list::AppListModel::STATE_CUSTOM_LAUNCHER_PAGE)) { |
|
Matt Giuca
2015/05/14 06:56:02
Same as in views.
calamity
2015/05/14 08:11:28
Leaving it, as discussed.
|
| + contents_view->SetActiveState(app_list::AppListModel::STATE_START, true); |
| + } |
| +} |
| + |
| bool AppListServiceAsh::IsAppListVisible() const { |
| return ash::Shell::GetInstance()->GetAppListTargetVisibility(); |
| } |