Skip to content

Commit 31b6410

Browse files
Xiaohui ChenXiaohui Chen
authored andcommitted
assistant: only show assistant button when native
Bug: 879401 Test: eve does not have assistant button Change-Id: Ie65d700eb6c052d2089bef6ec2a209bdd12dbc9b Reviewed-on: https://chromium-review.googlesource.com/1198282 Reviewed-by: Weidong Guo <weidongg@chromium.org> Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#587876}(cherry picked from commit bc895ea) Reviewed-on: https://chromium-review.googlesource.com/1207910 Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/branch-heads/3538@{#56} Cr-Branched-From: 79f7c91-refs/heads/master@{#587811}
1 parent 833b84f commit 31b6410

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ash/app_list/app_list_controller_impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,9 @@ void AppListControllerImpl::UpdateHomeLauncherVisibility() {
801801
}
802802

803803
void AppListControllerImpl::UpdateAssistantVisibility() {
804+
if (!chromeos::switches::IsAssistantEnabled())
805+
return;
806+
804807
auto* controller = Shell::Get()->voice_interaction_controller();
805808
GetSearchModel()->search_box()->SetShowAssistantButton(
806809
controller->settings_enabled() &&

0 commit comments

Comments
 (0)