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 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; | 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; |
10 | 10 |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 // See crbug.com/289791. | 908 // See crbug.com/289791. |
909 customizeSyncButton.disabled = | 909 customizeSyncButton.disabled = |
910 syncData.hasUnrecoverableError || | 910 syncData.hasUnrecoverableError || |
911 (!syncData.setupCompleted && !$('sync-action-link').hidden); | 911 (!syncData.setupCompleted && !$('sync-action-link').hidden); |
912 | 912 |
913 // Move #enable-auto-login-checkbox to a different location on CrOS. | 913 // Move #enable-auto-login-checkbox to a different location on CrOS. |
914 if (cr.isChromeOs) { | 914 if (cr.isChromeOs) { |
915 $('sync-general').insertBefore($('sync-status').nextSibling, | 915 $('sync-general').insertBefore($('sync-status').nextSibling, |
916 $('enable-auto-login-checkbox')); | 916 $('enable-auto-login-checkbox')); |
917 } | 917 } |
918 $('enable-auto-login-checkbox').hidden = !syncData.autoLoginVisible; | |
919 }, | 918 }, |
920 | 919 |
921 /** | 920 /** |
922 * Update the UI depending on whether the current profile has a pairing for | 921 * Update the UI depending on whether the current profile has a pairing for |
923 * Easy Unlock. | 922 * Easy Unlock. |
924 * @param {boolean} hasPairing True if the current profile has a pairing. | 923 * @param {boolean} hasPairing True if the current profile has a pairing. |
925 */ | 924 */ |
926 updateEasyUnlock_: function(hasPairing) { | 925 updateEasyUnlock_: function(hasPairing) { |
927 $('easy-unlock-setup').hidden = hasPairing; | 926 $('easy-unlock-setup').hidden = hasPairing; |
928 $('easy-unlock-enable').hidden = !hasPairing; | 927 $('easy-unlock-enable').hidden = !hasPairing; |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 BrowserOptions.getLoggedInUsername = function() { | 1729 BrowserOptions.getLoggedInUsername = function() { |
1731 return BrowserOptions.getInstance().username_; | 1730 return BrowserOptions.getInstance().username_; |
1732 }; | 1731 }; |
1733 } | 1732 } |
1734 | 1733 |
1735 // Export | 1734 // Export |
1736 return { | 1735 return { |
1737 BrowserOptions: BrowserOptions | 1736 BrowserOptions: BrowserOptions |
1738 }; | 1737 }; |
1739 }); | 1738 }); |
OLD | NEW |