Commit 78d93d0e authored by xiyuan's avatar xiyuan Committed by Commit bot

easy-unlock: Only show "Set up" UI for en-US.

BUG=414467

Review URL: https://codereview.chromium.org/567643003

Cr-Commit-Position: refs/heads/master@{#295156}
parent f93d5878
...@@ -1030,6 +1030,13 @@ cr.define('options', function() { ...@@ -1030,6 +1030,13 @@ cr.define('options', function() {
* @param {boolean} hasPairing True if the current profile has a pairing. * @param {boolean} hasPairing True if the current profile has a pairing.
*/ */
updateEasyUnlock_: function(hasPairing) { updateEasyUnlock_: function(hasPairing) {
// Hide "Set up" UI when the language is not en-US.
// TODO(xiyuan): Remove this after M38.
if (loadTimeData.getBoolean('easyUnlockAllowed')) {
$('easy-unlock-section').hidden =
!hasPairing && navigator.language != 'en-US';
}
$('easy-unlock-setup').hidden = hasPairing; $('easy-unlock-setup').hidden = hasPairing;
$('easy-unlock-enable').hidden = !hasPairing; $('easy-unlock-enable').hidden = !hasPairing;
if (!hasPairing && EasyUnlockTurnOffOverlay.getInstance().visible) { if (!hasPairing && EasyUnlockTurnOffOverlay.getInstance().visible) {
......
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