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

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

Issue 197313007: Add Easy Unlock options to chrome://settings behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update URL Created 6 years, 9 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
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 b948a27f3f709822c7f96de95164c349d365f694..30e707f115202c174721b09809ae7b0e0e941982 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -399,6 +399,14 @@ cr.define('options', function() {
};
}
+ // Easy Unlock section.
+ if (loadTimeData.getBoolean('easyUnlockEnabled')) {
+ $('easy-unlock-section').hidden = false;
+ $('easy-unlock-setup-button').onclick = function(event) {
+ chrome.send('launchEasyUnlockSetup');
+ };
+ }
+
// Web Content section.
$('fontSettingsCustomizeFontsButton').onclick = function(event) {
OptionsPage.navigateToPage('fonts');
@@ -917,6 +925,16 @@ 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;
+ },
+
+ /**
* Update the UI depending on whether the current profile manages any
* supervised users.
* @param {boolean} value True if the current profile manages any supervised
@@ -1692,6 +1710,7 @@ cr.define('options', function() {
'updateAccountPicture',
'updateAutoLaunchState',
'updateDefaultBrowserState',
+ 'updateEasyUnlock',
'updateManagesSupervisedUsers',
'updateSearchEngines',
'updateStartupPages',

Powered by Google App Engine
This is Rietveld 408576698