Commit 372300ab authored by David Tseng's avatar David Tseng Committed by Commit Bot

Call SyncSwitchAccessPrefsToSignInProfile after a user accepts Switch Access dialog to close

AccessibilityControllerImpl::UpdateFeatureFromPref->
    case FeatureType::kSwitchAccess:
    with !enabled

never calls
SyncSwitchAccessPrefsToSignInProfile();

Call it when the resulting dialog is closed with user accepting yes to close.

R=anastasi@google.com, dmazzoni@chromium.org

Fixed: 1122768
Change-Id: I3822dc5d98c201effb0cde2e5ad5005e8a20cc05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382011Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802738}
parent 308923f3
......@@ -1843,6 +1843,7 @@ void AccessibilityControllerImpl::SwitchAccessDisableDialogClosed(
DeactivateSwitchAccess();
if (disable_dialog_accepted) {
NotifyAccessibilityStatusChanged();
SyncSwitchAccessPrefsToSignInProfile();
} else {
// Reset the preference (which was already set to false). Doing so turns
// switch access back on.
......
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