Index: chrome/browser/password_manager/chrome_password_manager_client.cc |
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc |
index 6bbdc00ce9ef887e0eb02dc0824e707a015ae12c..61f692b01e0e53de2b1a3f1c09ea41f594d7ec40 100644 |
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc |
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc |
@@ -41,6 +41,7 @@ |
#include "components/password_manager/core/browser/password_manager_settings_migration_experiment.h" |
#include "components/password_manager/core/browser/password_manager_util.h" |
#include "components/password_manager/core/common/credential_manager_types.h" |
+#include "components/password_manager/core/common/password_manager_features.h" |
#include "components/password_manager/core/common/password_manager_pref_names.h" |
#include "components/password_manager/core/common/password_manager_switches.h" |
#include "components/password_manager/sync/browser/password_sync_util.h" |
@@ -160,8 +161,8 @@ ChromePasswordManagerClient::ChromePasswordManagerClient( |
ChromePasswordManagerClient::~ChromePasswordManagerClient() {} |
bool ChromePasswordManagerClient::IsAutomaticPasswordSavingEnabled() const { |
- return base::CommandLine::ForCurrentProcess()->HasSwitch( |
- password_manager::switches::kEnableAutomaticPasswordSaving) && |
+ return base::FeatureList::IsEnabled( |
+ password_manager::features::kEnableAutomaticPasswordSaving) && |
chrome::GetChannel() == version_info::Channel::UNKNOWN; |
} |