| 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',
|
|
|