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

Side by Side Diff: chrome/browser/resources/options2/browser_options.js

Issue 10222017: Make password generation switched by a preference in chrome settings rather than a command line fla… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change DCHECK_EQ to DCHECK to get around some type convertion issue. Created 8 years, 7 months 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) 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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 * @private 1041 * @private
1042 */ 1042 */
1043 setMetricsReportingSettingVisibility_: function(visible) { 1043 setMetricsReportingSettingVisibility_: function(visible) {
1044 if (visible) 1044 if (visible)
1045 $('metricsReportingSetting').style.display = 'block'; 1045 $('metricsReportingSetting').style.display = 'block';
1046 else 1046 else
1047 $('metricsReportingSetting').style.display = 'none'; 1047 $('metricsReportingSetting').style.display = 'none';
1048 }, 1048 },
1049 1049
1050 /** 1050 /**
1051 * Set the visibility of the password generation checkbox.
1052 * @private
1053 */
1054 setPasswordGenerationSettingVisibility_: function(visible) {
1055 if (visible)
1056 $('password-generation-checkbox').style.display = 'block';
1057 else
1058 $('password-generation-checkbox').style.display = 'none';
1059 },
1060
1061 /**
1051 * Set the font size selected item. 1062 * Set the font size selected item.
1052 * @private 1063 * @private
1053 */ 1064 */
1054 setFontSize_: function(font_size_value) { 1065 setFontSize_: function(font_size_value) {
1055 var selectCtl = $('defaultFontSize'); 1066 var selectCtl = $('defaultFontSize');
1056 for (var i = 0; i < selectCtl.options.length; i++) { 1067 for (var i = 0; i < selectCtl.options.length; i++) {
1057 if (selectCtl.options[i].value == font_size_value) { 1068 if (selectCtl.options[i].value == font_size_value) {
1058 selectCtl.selectedIndex = i; 1069 selectCtl.selectedIndex = i;
1059 if ($('Custom')) 1070 if ($('Custom'))
1060 selectCtl.remove($('Custom').index); 1071 selectCtl.remove($('Custom').index);
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 'setBackgroundModeCheckboxState', 1351 'setBackgroundModeCheckboxState',
1341 'setBluetoothState', 1352 'setBluetoothState',
1342 'setCheckRevocationCheckboxState', 1353 'setCheckRevocationCheckboxState',
1343 'setContentFilterSettingsValue', 1354 'setContentFilterSettingsValue',
1344 'setFontSize', 1355 'setFontSize',
1345 'setGtkThemeButtonEnabled', 1356 'setGtkThemeButtonEnabled',
1346 'setHighContrastCheckboxState', 1357 'setHighContrastCheckboxState',
1347 'setInstantFieldTrialStatus', 1358 'setInstantFieldTrialStatus',
1348 'setMetricsReportingCheckboxState', 1359 'setMetricsReportingCheckboxState',
1349 'setMetricsReportingSettingVisibility', 1360 'setMetricsReportingSettingVisibility',
1361 'setPasswordGenerationSettingVisibility',
1350 'setProfilesInfo', 1362 'setProfilesInfo',
1351 'setScreenMagnifierCheckboxState', 1363 'setScreenMagnifierCheckboxState',
1352 'setSpokenFeedbackCheckboxState', 1364 'setSpokenFeedbackCheckboxState',
1353 'setThemesResetButtonEnabled', 1365 'setThemesResetButtonEnabled',
1354 'setupCloudPrintConnectorSection', 1366 'setupCloudPrintConnectorSection',
1355 'setupPageZoomSelector', 1367 'setupPageZoomSelector',
1356 'setupProxySettingsSection', 1368 'setupProxySettingsSection',
1357 'setVirtualKeyboardCheckboxState', 1369 'setVirtualKeyboardCheckboxState',
1358 'showBluetoothSettings', 1370 'showBluetoothSettings',
1359 'showMouseControls', 1371 'showMouseControls',
(...skipping 21 matching lines...) Expand all
1381 BrowserOptions.getLoggedInUsername = function() { 1393 BrowserOptions.getLoggedInUsername = function() {
1382 return BrowserOptions.getInstance().username_; 1394 return BrowserOptions.getInstance().username_;
1383 }; 1395 };
1384 } 1396 }
1385 1397
1386 // Export 1398 // Export
1387 return { 1399 return {
1388 BrowserOptions: BrowserOptions 1400 BrowserOptions: BrowserOptions
1389 }; 1401 };
1390 }); 1402 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/browser_options.html ('k') | chrome/browser/ui/webui/options2/browser_options_handler2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698