| 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 fcb9f0af03d88113b94a610c7d3ce22bad2b10a1..59e9f8d10e086111807498f7de57a50f0acaa975 100644
|
| --- a/components/password_manager/core/browser/password_generation_manager.cc
|
| +++ b/components/password_manager/core/browser/password_generation_manager.cc
|
| @@ -57,8 +57,8 @@ bool PasswordGenerationManager::IsGenerationEnabled() const {
|
| }
|
|
|
| // 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)) {
|
| + // http://crbug.com/358998 for more details.
|
| + if (client_->GetPasswordSyncState() != SYNCING_NORMAL_ENCRYPTION) {
|
| VLOG(2) << "Generation disabled because passwords are not being synced or"
|
| << " custom passphrase is used.";
|
| return false;
|
|
|