summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 04:30:41 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 04:30:41 +0000
commit8fb0ecf45b286845fd2004a157a294d7e3ca7a39 (patch)
tree864dcb16993dbe947c586c69893ffc840c2ccc73
parent85adb77de88ba64046183d08fdf8b43f6e142ab7 (diff)
downloadchromium_src-8fb0ecf45b286845fd2004a157a294d7e3ca7a39.zip
chromium_src-8fb0ecf45b286845fd2004a157a294d7e3ca7a39.tar.gz
chromium_src-8fb0ecf45b286845fd2004a157a294d7e3ca7a39.tar.bz2
Disable passwords management settings for guest
BUG=9075 TEST=Login as Guest, go to chrome://settings, Personal Stuff, Passwords, ensure all settings concerning saving passwords are disabled and never save passwords is selected. Review URL: http://codereview.chromium.org/6250199 Patch from Vsevolod Vlasov <vsevik@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74407 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/options/personal_options.html5
-rw-r--r--chrome/browser/resources/options/personal_options.js12
2 files changed, 13 insertions, 4 deletions
diff --git a/chrome/browser/resources/options/personal_options.html b/chrome/browser/resources/options/personal_options.html
index 54fd689..0891c32 100644
--- a/chrome/browser/resources/options/personal_options.html
+++ b/chrome/browser/resources/options/personal_options.html
@@ -42,8 +42,9 @@
<h3 i18n-content="passwords"></h3>
<div>
<label class="radio">
- <input type="radio" pref="profile.password_manager_enabled" value="true"
- metric="Options_PasswordManager">
+ <input id="passwords-offersave"
+ pref="profile.password_manager_enabled"
+ type="radio" value="true" metric="Options_PasswordManager">
<span i18n-content="passwordsAskToSave"></span>
</label>
<label class="radio">
diff --git a/chrome/browser/resources/options/personal_options.js b/chrome/browser/resources/options/personal_options.js
index 8074109..3434d14 100644
--- a/chrome/browser/resources/options/personal_options.js
+++ b/chrome/browser/resources/options/personal_options.js
@@ -76,9 +76,17 @@ cr.define('options', function() {
chrome.send('loadAccountPicture');
}
- // Disable the screen lock checkbox for the guest mode.
- if (cr.commandLine.options['--bwsi'])
+ if (cr.commandLine.options['--bwsi']) {
+ // Disable the screen lock checkbox for the guest mode.
$('enable-screen-lock').disabled = true;
+
+ // Disable passwords management settings for the guest mode.
+ $('passwords-offersave').disabled = true;
+ $('passwords-neversave').disabled = true;
+ $('passwords-offersave').value = false;
+ $('passwords-neversave').value = true;
+ $('manage-passwords').disabled = true;
+ }
},
showStopSyncingOverlay_: function(event) {