Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: components/password_manager/core/browser/password_generation_manager_unittest.cc

Issue 1273053002: Use Smart Lock preference instead of Chrome Password manager preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reconcile_yolo_settings
Patch Set: Use Smart Lock preference instead of Chrome Password manager preference. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/password_manager/core/browser/password_form_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/password_generation_manager_unittest.cc
diff --git a/components/password_manager/core/browser/password_generation_manager_unittest.cc b/components/password_manager/core/browser/password_generation_manager_unittest.cc
index f8095609c5fa52ce801f853afee69def7af72150..f5fe0637b3e25ea72e6654384db29c1c23f8eec3 100644
--- a/components/password_manager/core/browser/password_generation_manager_unittest.cc
+++ b/components/password_manager/core/browser/password_generation_manager_unittest.cc
@@ -113,7 +113,7 @@ class PasswordGenerationManagerTest : public testing::Test {
// indirectly cause those prefs to be immediately accessed.
std::unique_ptr<TestingPrefServiceSimple> prefs(
new TestingPrefServiceSimple());
- prefs->registry()->RegisterBooleanPref(prefs::kPasswordManagerSavingEnabled,
+ prefs->registry()->RegisterBooleanPref(prefs::kCredentialsEnableService,
true);
client_.reset(new MockPasswordManagerClient(std::move(prefs)));
}
@@ -267,7 +267,7 @@ TEST_F(PasswordGenerationManagerTest, UpdatePasswordSyncStateIncognito) {
// be disabled.
EXPECT_CALL(*client_, IsOffTheRecord()).WillRepeatedly(testing::Return(true));
PrefService* prefs = client_->GetPrefs();
- prefs->SetBoolean(prefs::kPasswordManagerSavingEnabled, true);
+ prefs->SetBoolean(prefs::kCredentialsEnableService, true);
EXPECT_CALL(*client_, GetPasswordSyncState())
.WillRepeatedly(testing::Return(SYNCING_NORMAL_ENCRYPTION));
« no previous file with comments | « components/password_manager/core/browser/password_form_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698