diff options
author | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 09:33:45 +0000 |
---|---|---|
committer | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 09:33:45 +0000 |
commit | 387a6ceae16e24b7ed19dc143f97c3378ca343df (patch) | |
tree | 569e50058826292cd941fe4fa0745386d9a73b22 /chrome/browser/gtk/options/content_page_gtk.cc | |
parent | 9a93504fcb4975e7685ef638b726902db8e4f3e9 (diff) | |
download | chromium_src-387a6ceae16e24b7ed19dc143f97c3378ca343df.zip chromium_src-387a6ceae16e24b7ed19dc143f97c3378ca343df.tar.gz chromium_src-387a6ceae16e24b7ed19dc143f97c3378ca343df.tar.bz2 |
Implements policy to enable or disable the password manager, as found in the Options dialog, in the Under the Personal Stuff section.
xib changes: added an enabled binding to the policy-controlled checkboxes in the "Personal Stuff" preference pane so that they can be disabled when their value is overridden by policy. The methods for the bindings are in the preference window controller.
BUG=44395
TEST=ConfigurationPolicyPrefStoreTest.* and ConfigurationPolicyProviderWinTest.* Manual tests: Set the policy externally. Check that the radio buttons and the "Show saved passwords" button in Options/Personal Stuff/Passwords are disabled. Also check that the check box is set/unset as done by the policy.
Review URL: http://codereview.chromium.org/2848039
Patch from Jean-Luc Brouillet <jeanluc@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/content_page_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/options/content_page_gtk.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc index ef3b1a2..fa34529 100644 --- a/chrome/browser/gtk/options/content_page_gtk.cc +++ b/chrome/browser/gtk/options/content_page_gtk.cc @@ -232,6 +232,14 @@ GtkWidget* ContentPageGtk::InitPasswordSavingGroup() { gtk_box_pack_start(GTK_BOX(button_hbox), show_passwords_button, FALSE, FALSE, 0); + bool isPasswordManagerEnabled = !ask_to_save_passwords_.IsManaged(); + gtk_widget_set_sensitive(passwords_asktosave_radio_, + isPasswordManagerEnabled); + gtk_widget_set_sensitive(passwords_neversave_radio_, + isPasswordManagerEnabled); + gtk_widget_set_sensitive(show_passwords_button, + isPasswordManagerEnabled); + return vbox; } |