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

assistant: enable for board

Bug: 969056
Test: locally on device
Change-Id: I6ad07ec69c451a39c69d63fda97bdd6c02084322
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777063Reviewed-by: default avatarTao Wu <wutao@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692115}
parent 4caaddf3
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include <string> #include <string>
#include "ash/public/mojom/voice_interaction_controller.mojom-shared.h" #include "ash/public/mojom/voice_interaction_controller.mojom-shared.h"
#include "base/strings/string_util.h"
#include "base/system/sys_info.h"
#include "chrome/browser/chromeos/login/demo_mode/demo_session.h" #include "chrome/browser/chromeos/login/demo_mode/demo_session.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h" #include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
...@@ -93,7 +95,9 @@ ash::mojom::AssistantAllowedState IsAssistantAllowedForProfile( ...@@ -93,7 +95,9 @@ ash::mojom::AssistantAllowedState IsAssistantAllowedForProfile(
// tests, or the account is logged in a device with a physical Assistant key // tests, or the account is logged in a device with a physical Assistant key
// on keyboard. // on keyboard.
if (!chromeos::switches::IsGaiaServicesDisabled() && if (!chromeos::switches::IsGaiaServicesDisabled() &&
!ui::DeviceKeyboardHasAssistantKey()) { !(ui::DeviceKeyboardHasAssistantKey() ||
base::EqualsCaseInsensitiveASCII(base::SysInfo::GetLsbReleaseBoard(),
"nocturne"))) {
// Only enable non-dasher accounts for devices without physical key. // Only enable non-dasher accounts for devices without physical key.
bool account_supported = false; bool account_supported = false;
auto* identity_manager = auto* identity_manager =
......
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