Commit 2ee1b2ca authored by gcasto@chromium.org's avatar gcasto@chromium.org

[Password Generation] Don't generate passwords for custom passphrase users.

BUG=358998

Review URL: https://codereview.chromium.org/217423018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263156 0039d316-1c4b-4281-b951-d872f2087c98
parent e1d2839a
......@@ -161,8 +161,13 @@ ChromePasswordManagerClient::GetProbabilityForExperiment(
bool ChromePasswordManagerClient::IsPasswordSyncEnabled() {
ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetForProfile(GetProfile());
if (sync_service && sync_service->HasSyncSetupCompleted())
// Don't consider sync enabled if the user has a custom passphrase. See
// crbug.com/358998 for more details.
if (sync_service &&
sync_service->HasSyncSetupCompleted() &&
!sync_service->IsUsingSecondaryPassphrase()) {
return sync_service->GetActiveDataTypes().Has(syncer::PASSWORDS);
}
return false;
}
......
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