| 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.define('options', function() { | 5 cr.define('options', function() { |
| 6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 var RepeatingButton = cr.ui.RepeatingButton; | 8 var RepeatingButton = cr.ui.RepeatingButton; |
| 9 | 9 |
| 10 // | 10 // |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 // See crbug.com/289791. | 855 // See crbug.com/289791. |
| 856 customizeSyncButton.disabled = | 856 customizeSyncButton.disabled = |
| 857 syncData.hasUnrecoverableError || | 857 syncData.hasUnrecoverableError || |
| 858 (!syncData.setupCompleted && !$('sync-action-link').hidden); | 858 (!syncData.setupCompleted && !$('sync-action-link').hidden); |
| 859 | 859 |
| 860 // Move #enable-auto-login-checkbox to a different location on CrOS. | 860 // Move #enable-auto-login-checkbox to a different location on CrOS. |
| 861 if (cr.isChromeOs) { | 861 if (cr.isChromeOs) { |
| 862 $('sync-general').insertBefore($('sync-status').nextSibling, | 862 $('sync-general').insertBefore($('sync-status').nextSibling, |
| 863 $('enable-auto-login-checkbox')); | 863 $('enable-auto-login-checkbox')); |
| 864 } | 864 } |
| 865 $('enable-auto-login-checkbox').hidden = !syncData.autoLoginVisible; | |
| 866 }, | 865 }, |
| 867 | 866 |
| 868 /** | 867 /** |
| 869 * Update the UI depending on whether the current profile manages any | 868 * Update the UI depending on whether the current profile manages any |
| 870 * supervised users. | 869 * supervised users. |
| 871 * @param {boolean} value True if the current profile manages any supervised | 870 * @param {boolean} value True if the current profile manages any supervised |
| 872 * users. | 871 * users. |
| 873 */ | 872 */ |
| 874 updateManagesSupervisedUsers_: function(value) { | 873 updateManagesSupervisedUsers_: function(value) { |
| 875 if (value) { | 874 if (value) { |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 BrowserOptions.getLoggedInUsername = function() { | 1644 BrowserOptions.getLoggedInUsername = function() { |
| 1646 return BrowserOptions.getInstance().username_; | 1645 return BrowserOptions.getInstance().username_; |
| 1647 }; | 1646 }; |
| 1648 } | 1647 } |
| 1649 | 1648 |
| 1650 // Export | 1649 // Export |
| 1651 return { | 1650 return { |
| 1652 BrowserOptions: BrowserOptions | 1651 BrowserOptions: BrowserOptions |
| 1653 }; | 1652 }; |
| 1654 }); | 1653 }); |
| OLD | NEW |