| 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; |
| 918 }, | 919 }, |
| 919 | 920 |
| 920 /** | 921 /** |
| 921 * Update the UI depending on whether the current profile has a pairing for | 922 * Update the UI depending on whether the current profile has a pairing for |
| 922 * Easy Unlock. | 923 * Easy Unlock. |
| 923 * @param {boolean} hasPairing True if the current profile has a pairing. | 924 * @param {boolean} hasPairing True if the current profile has a pairing. |
| 924 */ | 925 */ |
| 925 updateEasyUnlock_: function(hasPairing) { | 926 updateEasyUnlock_: function(hasPairing) { |
| 926 $('easy-unlock-setup').hidden = hasPairing; | 927 $('easy-unlock-setup').hidden = hasPairing; |
| 927 $('easy-unlock-enable').hidden = !hasPairing; | 928 $('easy-unlock-enable').hidden = !hasPairing; |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 BrowserOptions.getLoggedInUsername = function() { | 1730 BrowserOptions.getLoggedInUsername = function() { |
| 1730 return BrowserOptions.getInstance().username_; | 1731 return BrowserOptions.getInstance().username_; |
| 1731 }; | 1732 }; |
| 1732 } | 1733 } |
| 1733 | 1734 |
| 1734 // Export | 1735 // Export |
| 1735 return { | 1736 return { |
| 1736 BrowserOptions: BrowserOptions | 1737 BrowserOptions: BrowserOptions |
| 1737 }; | 1738 }; |
| 1738 }); | 1739 }); |
| OLD | NEW |