Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Side by Side Diff: chrome/browser/resources/options/personal_options.js

Issue 8430017: Add warning to Mac that passwords are shared between profiles through the underlying keychain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/personal_options.html ('k') | chrome/browser/ui/webui/options/personal_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698