Index: chrome/browser/resources/options/browser_options.js |
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js |
index b0ee23544eca53b636b701c916ef0e7bec7af366..8ed022f4ea014e56d0b28f044b782a8149b3508b 100644 |
--- a/chrome/browser/resources/options/browser_options.js |
+++ b/chrome/browser/resources/options/browser_options.js |
@@ -1097,14 +1097,15 @@ cr.define('options', function() { |
}, |
/** |
- * Update the UI depending on whether the current profile has a pairing for |
- * Easy Unlock. |
- * @param {boolean} hasPairing True if the current profile has a pairing. |
- */ |
- updateEasyUnlock_: function(hasPairing) { |
- $('easy-unlock-setup').hidden = hasPairing; |
- $('easy-unlock-enable').hidden = !hasPairing; |
- if (!hasPairing && EasyUnlockTurnOffOverlay.getInstance().visible) { |
+ * Update the UI depending on whether Easy Unlock is enabled for the current |
+ * profile. |
+ * @param {boolean} isEnabled True if the feature is enabled for the current |
+ * profile. |
+ */ |
+ updateEasyUnlock_: function(isEnabled) { |
+ $('easy-unlock-disabled').hidden = isEnabled; |
+ $('easy-unlock-enabled').hidden = !isEnabled; |
+ if (!isEnabled && EasyUnlockTurnOffOverlay.getInstance().visible) { |
EasyUnlockTurnOffOverlay.dismiss(); |
} |
}, |