Commit 201f1f6c authored by Ioana Pandele's avatar Ioana Pandele Committed by Commit Bot

[Android] Update password leak detection strings in settings

This CL removes the subtitle of the toggle when signed in or when
signed out with the feature disabled.

Bug: 1014660
Change-Id: I6e9913c889aed461a4adb10e7a4169f09936409e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1883071
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709899}
parent 18547fbb
......@@ -461,18 +461,13 @@ public class SavePasswordsPreferences
PrefServiceBridge.getInstance().setPasswordLeakDetectionEnabled((boolean) newValue);
return true;
});
mAutoLeakDetectionSwitch.setSummary(
R.string.passwords_leak_detection_switch_signed_in_description);
} else {
mAutoLeakDetectionSwitch.setChecked(false);
mAutoLeakDetectionSwitch.setEnabled(false);
mAutoLeakDetectionSwitch.setOnPreferenceClickListener(null);
if (PrefServiceBridge.getInstance().isPasswordLeakDetectionEnabled()) {
mAutoLeakDetectionSwitch.setSummary(
R.string.passwords_leak_detection_switch_signed_out_full_description);
} else {
mAutoLeakDetectionSwitch.setSummary(
R.string.passwords_leak_detection_switch_signed_out_partial_description);
R.string.passwords_leak_detection_switch_signed_out_enable_description);
}
}
}
......
......@@ -552,16 +552,10 @@ CHAR-LIMIT guidelines:
Automatically sign in to websites using stored credentials. When the feature is off, you’ll be asked for verification every time before signing in to a website.
</message>
<message name="IDS_PASSWORDS_LEAK_DETECTION_SWITCH_TITLE" desc="Title for the switch toggling whether Chrome should check that entered credentials have been part of a leak.">
Check password safety
Warn you if passwords are compromised
</message>
<message name="IDS_PASSWORDS_LEAK_DETECTION_SWITCH_SIGNED_IN_DESCRIPTION" desc="Description for the switch toggling whether Chrome should check that entered credentials have been part of a leak.">
Warns you if a password you use was part of a data breach
</message>
<message name="IDS_PASSWORDS_LEAK_DETECTION_SWITCH_SIGNED_OUT_FULL_DESCRIPTION" desc="Description for the switch toggling whether Chrome should check that entered credentials have been part of a leak. Displayed for users who are not signed in and syncing.">
Google can check if your passwords were part of a data breach. This will be turned on when you sign in with your Google Account and turn on sync.
</message>
<message name="IDS_PASSWORDS_LEAK_DETECTION_SWITCH_SIGNED_OUT_PARTIAL_DESCRIPTION" desc="Description for the switch toggling whether Chrome should check that entered credentials have been part of a leak. Displayed for users who are not signed in and syncing who have at some point in time disabled the feature manually">
Google can check if your passwords were part of a data breach
<message name="IDS_PASSWORDS_LEAK_DETECTION_SWITCH_SIGNED_OUT_ENABLE_DESCRIPTION" desc="Description for the switch toggling whether Chrome should check that entered credentials have been part of a leak. Displayed for users who are not signed in and syncing.">
When you sign in to your Google Account, this feature is turned on
</message>
<message name="IDS_SECTION_SAVED_PASSWORDS_EXCEPTIONS" desc="Header for the list of websites for which user selected to never save passwords. [CHAR-LIMIT=32]">
Never saved
......
4ce3fc0c7ec4f132ea462f09e7f2986266c05000
\ No newline at end of file
af494816279ce9c353841d9ec453b4eaade664cd
\ No newline at end of file
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