| 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 c1883c0d42e8a484180f055d13b203e2908ad95b..476435c2c31be273198c0d51d295b6f583e79f68 100644
|
| --- a/chrome/browser/resources/options/browser_options.js
|
| +++ b/chrome/browser/resources/options/browser_options.js
|
| @@ -396,6 +396,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');
|
| @@ -911,6 +919,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} show True if the current profile manages any supervised
|
| @@ -1691,6 +1709,7 @@ cr.define('options', function() {
|
| 'updateAccountPicture',
|
| 'updateAutoLaunchState',
|
| 'updateDefaultBrowserState',
|
| + 'updateEasyUnlock',
|
| 'updateManagesSupervisedUsers',
|
| 'updateSearchEngines',
|
| 'updateStartupPages',
|
|
|