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; |
} |