Chromium Code Reviews| Index: chrome/browser/ui/app_list/app_list_service_views.cc |
| diff --git a/chrome/browser/ui/app_list/app_list_service_views.cc b/chrome/browser/ui/app_list/app_list_service_views.cc |
| index 7f1cd4aca03e00e357a1430c91991e6793fd55f4..87f46efb8bffdfc8ff2ab5b6f57afe3c9e74a6eb 100644 |
| --- a/chrome/browser/ui/app_list/app_list_service_views.cc |
| +++ b/chrome/browser/ui/app_list/app_list_service_views.cc |
| @@ -49,6 +49,19 @@ void AppListServiceViews::ShowForCustomLauncherPage(Profile* profile) { |
| app_list::AppListModel::STATE_CUSTOM_LAUNCHER_PAGE); |
| } |
| +void AppListServiceViews::HideLauncherPageIfShowing() { |
| + if (!shower_.IsAppListVisible()) |
| + return; |
| + |
| + app_list::ContentsView* contents_view = |
| + shower_.app_list()->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
if (!contents_view->blahblahblah....)
return;
calamity
2015/05/14 08:11:28
Leaving this, as discussed.
|
| + contents_view->SetActiveState(app_list::AppListModel::STATE_START, true); |
| + } |
| +} |
| + |
| void AppListServiceViews::DismissAppList() { |
| if (!can_dismiss_) |
| return; |