Commit e8a4f85f authored by David Tseng's avatar David Tseng Committed by Commit Bot

Fixes Switch Access on profile change

SA should handle reload (pref didn't change, but the profile changed). Similar to STS and ChromeVox.

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

AX-Relnotes: n/a
Fixed: 1125211
Test: manual; on-device
Change-Id: I0ab62e970d2cf948512bf49947a48bd1d7aacda9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398939Reviewed-by: default avatarAnastasia Helfinstein <anastasi@google.com>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#804969}
parent 553a1081
...@@ -900,6 +900,9 @@ void AccessibilityManager::OnSwitchAccessChanged() { ...@@ -900,6 +900,9 @@ void AccessibilityManager::OnSwitchAccessChanged() {
const bool enabled = profile_->GetPrefs()->GetBoolean( const bool enabled = profile_->GetPrefs()->GetBoolean(
ash::prefs::kAccessibilitySwitchAccessEnabled); ash::prefs::kAccessibilitySwitchAccessEnabled);
if (enabled)
switch_access_loader_->SetProfile(profile_, base::Closure());
if (switch_access_enabled_ == enabled) if (switch_access_enabled_ == enabled)
return; return;
switch_access_enabled_ = enabled; switch_access_enabled_ = 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