Index: chrome/browser/password_manager/password_manager_test_base.cc |
diff --git a/chrome/browser/password_manager/password_manager_test_base.cc b/chrome/browser/password_manager/password_manager_test_base.cc |
index a2fa1c9679a9dd66400b2dedaf24a8b592560636..d7fe6bd43459580c99278fce16365fbfd2e0a43a 100644 |
--- a/chrome/browser/password_manager/password_manager_test_base.cc |
+++ b/chrome/browser/password_manager/password_manager_test_base.cc |
@@ -23,6 +23,7 @@ |
#include "components/infobars/core/infobar_manager.h" |
#include "components/password_manager/core/browser/password_manager_test_utils.h" |
#include "components/password_manager/core/browser/test_password_store.h" |
+#include "components/password_manager/core/common/password_manager_features.h" |
#include "components/password_manager/core/common/password_manager_switches.h" |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/test/browser_test_utils.h" |
@@ -195,8 +196,8 @@ void PasswordManagerBrowserTestBase::SetUpOnMainThread() { |
password_manager::BuildPasswordStore< |
content::BrowserContext, password_manager::TestPasswordStore>); |
ASSERT_TRUE(embedded_test_server()->Start()); |
- ASSERT_FALSE(base::CommandLine::ForCurrentProcess()->HasSwitch( |
- password_manager::switches::kEnableAutomaticPasswordSaving)); |
+ ASSERT_FALSE(base::FeatureList::IsEnabled( |
+ password_manager::features::kEnableAutomaticPasswordSaving)); |
} |
void PasswordManagerBrowserTestBase::TearDownOnMainThread() { |