| 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 87fe67040f2629b0acc37badfc47a6ae3f6313a2..1fd28739239babb11dffecaaad6435f7794731ac 100644
|
| --- a/chrome/browser/resources/options/browser_options.js
|
| +++ b/chrome/browser/resources/options/browser_options.js
|
| @@ -640,16 +640,6 @@ cr.define('options', function() {
|
| };
|
| }
|
|
|
| - // Device control section.
|
| - if (cr.isChromeOS &&
|
| - UIAccountTweaks.currentUserIsOwner() &&
|
| - loadTimeData.getBoolean('consumerManagementEnabled')) {
|
| - $('device-control-section').hidden = false;
|
| - $('consumer-management-button').onclick = function(event) {
|
| - PageManager.showPageByName('consumer-management-overlay');
|
| - };
|
| - }
|
| -
|
| // Easy Unlock section.
|
| if (loadTimeData.getBoolean('easyUnlockAllowed')) {
|
| $('easy-unlock-section').hidden = false;
|
| @@ -2392,43 +2382,6 @@ cr.define('options', function() {
|
| };
|
|
|
| /**
|
| - * Shows different button text for each consumer management enrollment
|
| - * status.
|
| - * @enum {string} status Consumer management service status string.
|
| - */
|
| - BrowserOptions.setConsumerManagementStatus = function(status) {
|
| - var button = $('consumer-management-button');
|
| - if (status == 'StatusUnknown') {
|
| - button.hidden = true;
|
| - return;
|
| - }
|
| -
|
| - button.hidden = false;
|
| - /** @type {string} */ var strId;
|
| - switch (status) {
|
| - case ConsumerManagementOverlay.Status.STATUS_UNENROLLED:
|
| - strId = 'consumerManagementEnrollButton';
|
| - button.disabled = false;
|
| - ConsumerManagementOverlay.setStatus(status);
|
| - break;
|
| - case ConsumerManagementOverlay.Status.STATUS_ENROLLING:
|
| - strId = 'consumerManagementEnrollingButton';
|
| - button.disabled = true;
|
| - break;
|
| - case ConsumerManagementOverlay.Status.STATUS_ENROLLED:
|
| - strId = 'consumerManagementUnenrollButton';
|
| - button.disabled = false;
|
| - ConsumerManagementOverlay.setStatus(status);
|
| - break;
|
| - case ConsumerManagementOverlay.Status.STATUS_UNENROLLING:
|
| - strId = 'consumerManagementUnenrollingButton';
|
| - button.disabled = true;
|
| - break;
|
| - }
|
| - button.textContent = loadTimeData.getString(strId);
|
| - };
|
| -
|
| - /**
|
| * Shows Android Apps settings when they are available.
|
| * (Chrome OS only).
|
| */
|
|
|