Commit dd61b747 authored by Bettina's avatar Bettina Committed by Commit Bot

Saved password warning default to phishing.

Saved passwords should be consider consumer like
Gmail accounts and password protection warning trigger
policy should default to phishing only.

Bug: 1010764
Change-Id: Iad51602e1ccdef3b43b83ad2f053ee109e728eac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1842410Reviewed-by: default avatarDaniel Rubery <drubery@chromium.org>
Commit-Queue: Bettina Dea <bdea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703451}
parent eb1d84f4
...@@ -1450,7 +1450,11 @@ MaybeCreateNavigationThrottle(content::NavigationHandle* navigation_handle) { ...@@ -1450,7 +1450,11 @@ MaybeCreateNavigationThrottle(content::NavigationHandle* navigation_handle) {
PasswordProtectionTrigger PasswordProtectionTrigger
ChromePasswordProtectionService::GetPasswordProtectionWarningTriggerPref( ChromePasswordProtectionService::GetPasswordProtectionWarningTriggerPref(
ReusedPasswordAccountType password_type) const { ReusedPasswordAccountType password_type) const {
if (password_type.account_type() == ReusedPasswordAccountType::GMAIL) if (password_type.account_type() == ReusedPasswordAccountType::GMAIL ||
(password_type.account_type() ==
ReusedPasswordAccountType::SAVED_PASSWORD &&
base::FeatureList::IsEnabled(
safe_browsing::kPasswordProtectionForSavedPasswords)))
return PHISHING_REUSE; return PHISHING_REUSE;
bool is_policy_managed = profile_->GetPrefs()->HasPrefPath( bool is_policy_managed = profile_->GetPrefs()->HasPrefPath(
......
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