| 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 * accountInfo: (string|undefined), | 9 * accountInfo: (string|undefined), |
| 10 * childUser: (boolean|undefined), | 10 * childUser: (boolean|undefined), |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 } else { | 717 } else { |
| 718 $('certificatesManageButton').onclick = function(event) { | 718 $('certificatesManageButton').onclick = function(event) { |
| 719 PageManager.showPageByName('certificates'); | 719 PageManager.showPageByName('certificates'); |
| 720 chrome.send('coreOptionsUserMetricsAction', | 720 chrome.send('coreOptionsUserMetricsAction', |
| 721 ['Options_ManageSSLCertificates']); | 721 ['Options_ManageSSLCertificates']); |
| 722 }; | 722 }; |
| 723 } | 723 } |
| 724 | 724 |
| 725 // CUPS Print section (CrOS only). | 725 // CUPS Print section (CrOS only). |
| 726 if (cr.isChromeOS) { | 726 if (cr.isChromeOS) { |
| 727 if (loadTimeData.getBoolean('cupsPrintEnabled')) { | 727 if (!loadTimeData.getBoolean('cupsPrintDisabled')) { |
| 728 $('cups-printers-section').hidden = false; | 728 $('cups-printers-section').hidden = false; |
| 729 $('cupsPrintersManageButton').onclick = function() { | 729 $('cupsPrintersManageButton').onclick = function() { |
| 730 chrome.send('showCupsPrintDevicesPage'); | 730 chrome.send('showCupsPrintDevicesPage'); |
| 731 }; | 731 }; |
| 732 } | 732 } |
| 733 } | 733 } |
| 734 | 734 |
| 735 if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) { | 735 if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) { |
| 736 $('cloudprint-options-mdns').hidden = false; | 736 $('cloudprint-options-mdns').hidden = false; |
| 737 $('cloudPrintDevicesPageButton').onclick = function() { | 737 $('cloudPrintDevicesPageButton').onclick = function() { |
| (...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2482 | 2482 |
| 2483 settings.hidden = !isVisible; | 2483 settings.hidden = !isVisible; |
| 2484 }; | 2484 }; |
| 2485 } | 2485 } |
| 2486 | 2486 |
| 2487 // Export | 2487 // Export |
| 2488 return { | 2488 return { |
| 2489 BrowserOptions: BrowserOptions | 2489 BrowserOptions: BrowserOptions |
| 2490 }; | 2490 }; |
| 2491 }); | 2491 }); |
| OLD | NEW |