Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 889153004: [Cleanup] Clean up Easy Unlock code a bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and remove TODOs Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/signin/easy_unlock_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
},
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/signin/easy_unlock_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698