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

Unified Diff: components/password_manager/core/common/password_manager_features.cc

Issue 1668523002: [Password Manager] Switch password manager code to use the Feature framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: components/password_manager/core/common/password_manager_features.cc
diff --git a/components/password_manager/core/common/password_manager_features.cc b/components/password_manager/core/common/password_manager_features.cc
index c1f9f4d9ca88cbe09a023a73293ff47dadb258a3..ca9f6584344731d344b38e9659a87b3fb270b244 100644
--- a/components/password_manager/core/common/password_manager_features.cc
+++ b/components/password_manager/core/common/password_manager_features.cc
@@ -8,6 +8,16 @@ namespace password_manager {
namespace features {
+// Enable affiliation based matching, so that credentials stored for an Android
+// application will also be considered matches for, and be filled into
+// corresponding Web applications.
+const base::Feature kAffiliationBasedMatching = {
+ "affiliation-based-matching", base::FEATURE_ENABLED_BY_DEFAULT};
+
+// Drop the sync credential if captured for saving, do not offer it for saving.
+const base::Feature kDropSyncCredential = {"drop-sync-credential",
+ base::FEATURE_ENABLED_BY_DEFAULT};
+
// Disables the save-password prompt. Passwords are then saved automatically,
// without asking the user.
const base::Feature kEnableAutomaticPasswordSaving = {
@@ -27,6 +37,15 @@ const base::Feature kEnablePasswordForceSaving = {
extern const base::Feature kEnableManualPasswordGeneration = {
"enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT};
+// Disallow autofilling of the sync credential.
+const base::Feature kProtectSyncCredential = {
+ "protect-sync-credential", base::FEATURE_DISABLED_BY_DEFAULT};
+
+// Disallow autofilling of the sync credential only for transactional reauth
+// pages.
+const base::Feature kProtectSyncCredentialOnReauth = {
+ "protect-sync-credential-on-reauth", base::FEATURE_DISABLED_BY_DEFAULT};
+
} // namespace features
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698