OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 6 |
7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
8 var ArrayDataModel = cr.ui.ArrayDataModel; | 8 var ArrayDataModel = cr.ui.ArrayDataModel; |
9 | 9 |
10 // State variables. | 10 // State variables. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 if (PersonalOptions.disablePasswordManagement()) { | 135 if (PersonalOptions.disablePasswordManagement()) { |
136 // Disable the Password Manager in guest mode. | 136 // Disable the Password Manager in guest mode. |
137 $('passwords-offersave').disabled = true; | 137 $('passwords-offersave').disabled = true; |
138 $('passwords-neversave').disabled = true; | 138 $('passwords-neversave').disabled = true; |
139 $('passwords-offersave').value = false; | 139 $('passwords-offersave').value = false; |
140 $('passwords-neversave').value = true; | 140 $('passwords-neversave').value = true; |
141 $('manage-passwords').disabled = true; | 141 $('manage-passwords').disabled = true; |
142 } | 142 } |
143 | 143 |
| 144 $('mac-passwords-warning').hidden = |
| 145 !(localStrings.getString('macPasswordsWarning')); |
| 146 |
144 if (PersonalOptions.disableAutofillManagement()) { | 147 if (PersonalOptions.disableAutofillManagement()) { |
145 $('autofill-settings').disabled = true; | 148 $('autofill-settings').disabled = true; |
146 | 149 |
147 // Disable and turn off autofill. | 150 // Disable and turn off autofill. |
148 var autofillEnabled = $('autofill-enabled'); | 151 var autofillEnabled = $('autofill-enabled'); |
149 autofillEnabled.disabled = true; | 152 autofillEnabled.disabled = true; |
150 autofillEnabled.checked = false; | 153 autofillEnabled.checked = false; |
151 cr.dispatchSimpleEvent(autofillEnabled, 'change'); | 154 cr.dispatchSimpleEvent(autofillEnabled, 'change'); |
152 } | 155 } |
153 }, | 156 }, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 PersonalOptions.getInstance()[name + '_'](value); | 343 PersonalOptions.getInstance()[name + '_'](value); |
341 }; | 344 }; |
342 }); | 345 }); |
343 | 346 |
344 // Export | 347 // Export |
345 return { | 348 return { |
346 PersonalOptions: PersonalOptions | 349 PersonalOptions: PersonalOptions |
347 }; | 350 }; |
348 | 351 |
349 }); | 352 }); |
OLD | NEW |