// This may not work correctly if the profile passed in is different from the
// one the ash Shell is currently using.
// TODO(ananta): Handle profile changes correctly when !defined(OS_CHROMEOS).
- if (!ash::Shell::GetInstance()->GetAppListTargetVisibility())
- ash::Shell::GetInstance()->ToggleAppList(NULL);
+ ash::Shell::GetInstance()->ShowAppList(NULL);
}
bool AppListServiceAsh::IsAppListVisible() const {
}
void AppListServiceAsh::DismissAppList() {
- if (IsAppListVisible())
- ash::Shell::GetInstance()->ToggleAppList(NULL);
+ ash::Shell::GetInstance()->DismissAppList();
}
void AppListServiceAsh::EnableAppList(Profile* initial_profile,