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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options2/browser_options.js
diff --git a/chrome/browser/resources/options2/browser_options.js b/chrome/browser/resources/options2/browser_options.js
index f9190c6c1a9c079c47dd3345b6424e7ed73afe5a..163e8c3c077f930b6e313f2c8d72e1d87015560b 100644
--- a/chrome/browser/resources/options2/browser_options.js
+++ b/chrome/browser/resources/options2/browser_options.js
@@ -1048,6 +1048,17 @@ cr.define('options', function() {
},
/**
+ * Set the visibility of the password generation checkbox.
+ * @private
+ */
+ setPasswordGenerationSettingVisibility_: function(visible) {
+ if (visible)
+ $('password-generation-checkbox').style.display = 'block';
+ else
+ $('password-generation-checkbox').style.display = 'none';
+ },
+
+ /**
* Set the font size selected item.
* @private
*/
@@ -1347,6 +1358,7 @@ cr.define('options', function() {
'setInstantFieldTrialStatus',
'setMetricsReportingCheckboxState',
'setMetricsReportingSettingVisibility',
+ 'setPasswordGenerationSettingVisibility',
'setProfilesInfo',
'setScreenMagnifierCheckboxState',
'setSpokenFeedbackCheckboxState',
« 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