Commit 7165c8e7 authored by Ryan Hansberry's avatar Ryan Hansberry Committed by Commit Bot

Smart Lock: Explicitly allow JS when changing signin pref.

Bug: 906162
Change-Id: I564bcbf2ac8c600e357f10ffaf085279ab7fe12e
Reviewed-on: https://chromium-review.googlesource.com/c/1340954Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Ryan Hansberry <hansberry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609004}
parent 75550404
...@@ -350,6 +350,8 @@ void MultideviceHandler::RegisterPrefChangeListeners() { ...@@ -350,6 +350,8 @@ void MultideviceHandler::RegisterPrefChangeListeners() {
} }
void MultideviceHandler::NotifySmartLockSignInEnabledChanged() { void MultideviceHandler::NotifySmartLockSignInEnabledChanged() {
AllowJavascript();
bool sign_in_enabled = prefs_->GetBoolean( bool sign_in_enabled = prefs_->GetBoolean(
proximity_auth::prefs::kProximityAuthIsChromeOSLoginEnabled); proximity_auth::prefs::kProximityAuthIsChromeOSLoginEnabled);
FireWebUIListener("smart-lock-signin-enabled-changed", FireWebUIListener("smart-lock-signin-enabled-changed",
......
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