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

Unified Diff: chrome/browser/resources/options/personal_options.js

Issue 7322014: Autofill button should get enabled and disabled according to the policy value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/personal_options_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/personal_options.js
diff --git a/chrome/browser/resources/options/personal_options.js b/chrome/browser/resources/options/personal_options.js
index ac063bc06d19eb6b101817951e434a7aeac1340d..929d5de99a42cbd63509b3e1f77f42113c850b36 100644
--- a/chrome/browser/resources/options/personal_options.js
+++ b/chrome/browser/resources/options/personal_options.js
@@ -198,6 +198,10 @@ cr.define('options', function() {
$('themes-reset').disabled = !enabled;
},
+ setAutoFillButtonEnabled_: function(enabled) {
+ $('autofill-settings').disabled = !enabled;
Joao da Silva 2011/07/08 08:56:28 This can reenable the control when it was disabled
pastarmovj 2011/07/08 09:33:30 You are right. Good catch! On 2011/07/08 08:56:28
+ },
+
hideSyncSection_: function() {
$('sync-section').hidden = true;
},
@@ -254,6 +258,7 @@ cr.define('options', function() {
'setStartStopButtonLabel',
'setGtkThemeButtonEnabled',
'setThemesResetButtonEnabled',
+ 'setAutoFillButtonEnabled',
'hideSyncSection',
'setRegisteredDataTypes',
].forEach(function(name) {
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/personal_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698