Commit bc895ea2 authored by Xiaohui Chen's avatar Xiaohui Chen Committed by Commit Bot

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/1198282Reviewed-by: default avatarWeidong Guo <weidongg@chromium.org>
Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587876}
parent a0c2d6df
...@@ -804,6 +804,9 @@ void AppListControllerImpl::UpdateHomeLauncherVisibility() { ...@@ -804,6 +804,9 @@ void AppListControllerImpl::UpdateHomeLauncherVisibility() {
} }
void AppListControllerImpl::UpdateAssistantVisibility() { void AppListControllerImpl::UpdateAssistantVisibility() {
if (!chromeos::switches::IsAssistantEnabled())
return;
auto* controller = Shell::Get()->voice_interaction_controller(); auto* controller = Shell::Get()->voice_interaction_controller();
GetSearchModel()->search_box()->SetShowAssistantButton( GetSearchModel()->search_box()->SetShowAssistantButton(
controller->settings_enabled() && controller->settings_enabled() &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment