Index: components/password_manager/core/browser/password_manager_unittest.cc |
diff --git a/components/password_manager/core/browser/password_manager_unittest.cc b/components/password_manager/core/browser/password_manager_unittest.cc |
index a5a9ed4ea48caabc7b720b64bbe8290908f52a76..d4ed8cb27a3e610a8207e96469776c16b674ec43 100644 |
--- a/components/password_manager/core/browser/password_manager_unittest.cc |
+++ b/components/password_manager/core/browser/password_manager_unittest.cc |
@@ -76,7 +76,7 @@ class TestPasswordManager : public PasswordManager { |
class PasswordManagerTest : public testing::Test { |
protected: |
virtual void SetUp() { |
- prefs_.registry()->RegisterBooleanPref(prefs::kPasswordManagerEnabled, |
+ prefs_.registry()->RegisterBooleanPref(prefs::kPasswordManagerSavingEnabled, |
true); |
store_ = new MockPasswordStore; |
@@ -484,10 +484,10 @@ TEST_F(PasswordManagerTest, InitiallyInvisibleForm) { |
TEST_F(PasswordManagerTest, SavingDependsOnManagerEnabledPreference) { |
// Test that saving passwords depends on the password manager enabled |
// preference. |
- prefs_.SetUserPref(prefs::kPasswordManagerEnabled, |
+ prefs_.SetUserPref(prefs::kPasswordManagerSavingEnabled, |
base::Value::CreateBooleanValue(true)); |
EXPECT_TRUE(manager()->IsSavingEnabledForCurrentPage()); |
- prefs_.SetUserPref(prefs::kPasswordManagerEnabled, |
+ prefs_.SetUserPref(prefs::kPasswordManagerSavingEnabled, |
base::Value::CreateBooleanValue(false)); |
EXPECT_FALSE(manager()->IsSavingEnabledForCurrentPage()); |
} |
@@ -498,7 +498,7 @@ TEST_F(PasswordManagerTest, FillPasswordsOnDisabledManager) { |
std::vector<PasswordForm*> result; |
PasswordForm* existing = new PasswordForm(MakeSimpleForm()); |
result.push_back(existing); |
- prefs_.SetUserPref(prefs::kPasswordManagerEnabled, |
+ prefs_.SetUserPref(prefs::kPasswordManagerSavingEnabled, |
base::Value::CreateBooleanValue(false)); |
EXPECT_CALL(driver_, FillPasswordForm(_)); |
EXPECT_CALL(*store_.get(), |