Commit d7049588 authored by Li Lin's avatar Li Lin Committed by Commit Bot

Enable personal readout to support personal features after we changed to use...

Enable personal readout to support personal features after we changed to use libassistant device ID.

Bug: b/118782806
Change-Id: I9b3d08eb700f6f352f88c59c11bfbf3813f15c4f
Reviewed-on: https://chromium-review.googlesource.com/c/1312293Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Li Lin <llin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604987}
parent 4b3191cd
......@@ -842,6 +842,10 @@ void AssistantManagerServiceImpl::UpdateDeviceSettings() {
device_settings_update->mutable_device_settings()->set_locale(
service_->assistant_state()->locale().value());
// Enable personal readout to grant permission for personal features.
device_settings_update->mutable_device_settings()->set_personal_readout(
assistant::AssistantDeviceSettings::PERSONAL_READOUT_ENABLED);
// Device settings update result is not handled because it is not included in
// the SettingsUiUpdateResult.
SendUpdateSettingsUiRequest(update.SerializeAsString(), base::DoNothing());
......
......@@ -28,5 +28,12 @@ message AssistantDeviceSettingsUpdate {
}
message AssistantDeviceSettings {
// Whether this device may display/read out personal info.
enum PersonalReadout {
// This device may display/read out personal info.
PERSONAL_READOUT_ENABLED = 1;
}
optional PersonalReadout personal_readout = 2;
optional string locale = 5;
}
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