OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.exportPath('options'); | 5 cr.exportPath('options'); |
6 | 6 |
7 /** | 7 /** |
8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
9 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
(...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 break; | 2320 break; |
2321 case ConsumerManagementOverlay.Status.STATUS_UNENROLLING: | 2321 case ConsumerManagementOverlay.Status.STATUS_UNENROLLING: |
2322 strId = 'consumerManagementUnenrollingButton'; | 2322 strId = 'consumerManagementUnenrollingButton'; |
2323 button.disabled = true; | 2323 button.disabled = true; |
2324 break; | 2324 break; |
2325 } | 2325 } |
2326 button.textContent = loadTimeData.getString(strId); | 2326 button.textContent = loadTimeData.getString(strId); |
2327 }; | 2327 }; |
2328 | 2328 |
2329 /** | 2329 /** |
2330 * Hides Android Apps settings when they are not available (ChromeOS only). | 2330 * Hides Android Apps settings when they are not available. |
| 2331 * (Chrome OS only). |
2331 */ | 2332 */ |
2332 BrowserOptions.hideAndroidAppsSection = function() { | 2333 BrowserOptions.hideAndroidAppsSection = function() { |
2333 var section = $('andorid-apps-section'); | 2334 var section = $('android-apps-section'); |
2334 if (section) | 2335 if (section) |
2335 section.hidden = true; | 2336 section.hidden = true; |
2336 }; | 2337 }; |
2337 } | 2338 } |
2338 | 2339 |
2339 // Export | 2340 // Export |
2340 return { | 2341 return { |
2341 BrowserOptions: BrowserOptions | 2342 BrowserOptions: BrowserOptions |
2342 }; | 2343 }; |
2343 }); | 2344 }); |
OLD | NEW |