Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: components/password_manager/core/browser/password_generation_manager.cc

Issue 644053003: [Password Manager] Add UMA stats for custom passphrase users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/password_generation_manager.cc
diff --git a/components/password_manager/core/browser/password_generation_manager.cc b/components/password_manager/core/browser/password_generation_manager.cc
index 75499c8503c8ee95f24c2c6ec0fc267fac819c9d..18e119a846dc21315eebd406e1067e384a783161 100644
--- a/components/password_manager/core/browser/password_generation_manager.cc
+++ b/components/password_manager/core/browser/password_generation_manager.cc
@@ -49,8 +49,11 @@ bool PasswordGenerationManager::IsGenerationEnabled() const {
return false;
}
- if (!client_->IsPasswordSyncEnabled()) {
- DVLOG(2) << "Generation disabled because passwords are not being synced";
+ // Don't consider sync enabled if the user has a custom passphrase. See
+ // crbug.com/358998 for more details.
+ if (!client_->IsPasswordSyncEnabled(WITHOUT_CUSTOM_PASSPHRASE)) {
+ DVLOG(2) << "Generation disabled because passwords are not being synced or"
+ << " custom passphrase is used.";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698