Commit f75423f1 authored by mirandac@chromium.org's avatar mirandac@chromium.org

Add warning to Mac that passwords are shared between profiles through the underlying keychain.

BUG=102176
TEST=on Mac, with more than one profile existing, a warning is shown on the settings/personal page about profile password sharing.

Review URL: http://codereview.chromium.org/8430017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108137 0039d316-1c4b-4281-b951-d872f2087c98
parent 335fe758
......@@ -8093,6 +8093,9 @@ Keep your key file in a safe place. You will need it to create new versions of y
Manage saved passwords...
</message>
</if>
<message name="IDS_OPTIONS_PASSWORDS_MAC_WARNING" desc="The warning for OS X that passwords are shared across profiles in the keychain.">
On Mac, passwords are saved to your Keychain and may be accessed or synced by other Chrome users sharing this OS X account.
</message>
<message name="IDS_OPTIONS_PASSWORDS_AUTOLOGIN" desc="The label of the 'autologinEnabled' checkbox">
Offer to sign into Google sites automatically with this account
</message>
......
......@@ -56,3 +56,7 @@
#enable-auto-login-checkbox {
margin-top: 10px;
}
#mac-passwords-warning {
margin-top: 10px;
}
......@@ -79,6 +79,8 @@
</div>
<div><button id="manage-passwords" i18n-content="manage_passwords"
pref="profile.password_manager_enabled"></button></div>
<div id="mac-passwords-warning" i18n-content="macPasswordsWarning"
hidden></div>
<!-- This makes the managed-banner appear when the "pref" is
configured by the IT administrator. -->
<input name="password_allow_show_hidden" type="text"
......
......@@ -134,6 +134,9 @@ cr.define('options', function() {
$('manage-passwords').disabled = true;
}
$('mac-passwords-warning').hidden =
!(localStrings.getString('macPasswordsWarning'));
if (PersonalOptions.disableAutofillManagement()) {
$('autofill-settings').disabled = true;
......
......@@ -110,6 +110,13 @@ void PersonalOptionsHandler::GetLocalizedValues(
l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_NEVERSAVE));
localized_strings->SetString("manage_passwords",
l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MANAGE_PASSWORDS));
#if defined(OS_MACOSX)
ProfileManager* profile_manager = g_browser_process->profile_manager();
if (profile_manager->GetNumberOfProfiles() > 1) {
localized_strings->SetString("macPasswordsWarning",
l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING));
}
#endif
localized_strings->SetString("autologinEnabled",
l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_AUTOLOGIN));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment