Skip to content
Commit 1a8b3c51 authored by CJ Huang's avatar CJ Huang Committed by Chromium LUCI CQ
Browse files

[SPEAK-ON-MUTE] Update the prefs for system UI.

Update the pref name to a more suitable one. Add logic to disable show
opt-in nudge pref when user has changed the setting.
Add a new pref to count the number of times the opt-in nudge has shown.

Update the unit tests accordingly.

'*CrasAudioHandlerTest.SpeakOnMuteDetectionPrefSwitchTest*'
'*AudioDevicesPrefHandlerTest.ShouldShowSpeakOnMuteOptInNudgePrefRegistered*'

Bug: b/283345021
TEST: chromeos_unittests --gtest_filter=
TEST: chromeos_unittests --gtest_filter=
Change-Id: Id24b66f12409be01cd6a486464eb207bc326ff0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4546447


Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Reviewed-by: default avatarLi-Yu Yu <aaronyu@google.com>
Commit-Queue: CJ Huang <chenjih@google.com>
Reviewed-by: default avatarCharles Zhao <charleszhao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1146715}
parent 116845ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment