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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/password_manager/core/common/password_manager_features.h" 5 #include "components/password_manager/core/common/password_manager_features.h"
6 6
7 namespace password_manager { 7 namespace password_manager {
8 8
9 namespace features { 9 namespace features {
10 10
11 // Enable affiliation based matching, so that credentials stored for an Android
12 // application will also be considered matches for, and be filled into
13 // corresponding Web applications.
14 const base::Feature kAffiliationBasedMatching = {
15 "affiliation-based-matching", base::FEATURE_ENABLED_BY_DEFAULT};
16
17 // Drop the sync credential if captured for saving, do not offer it for saving.
18 const base::Feature kDropSyncCredential = {"drop-sync-credential",
19 base::FEATURE_ENABLED_BY_DEFAULT};
20
11 // Disables the save-password prompt. Passwords are then saved automatically, 21 // Disables the save-password prompt. Passwords are then saved automatically,
12 // without asking the user. 22 // without asking the user.
13 const base::Feature kEnableAutomaticPasswordSaving = { 23 const base::Feature kEnableAutomaticPasswordSaving = {
14 "enable-automatic-password-saving", base::FEATURE_DISABLED_BY_DEFAULT}; 24 "enable-automatic-password-saving", base::FEATURE_DISABLED_BY_DEFAULT};
15 25
16 // Enable supporting of updating password in the password manager on a password 26 // Enable supporting of updating password in the password manager on a password
17 // change form submit. 27 // change form submit.
18 const base::Feature kEnablePasswordChangeSupport = { 28 const base::Feature kEnablePasswordChangeSupport = {
19 "enable-password-change-support", base::FEATURE_DISABLED_BY_DEFAULT}; 29 "enable-password-change-support", base::FEATURE_DISABLED_BY_DEFAULT};
20 30
21 // Enable a context menu item in the password field that allows the user 31 // Enable a context menu item in the password field that allows the user
22 // to manually enforce saving of their password. 32 // to manually enforce saving of their password.
23 const base::Feature kEnablePasswordForceSaving = { 33 const base::Feature kEnablePasswordForceSaving = {
24 "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT}; 34 "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT};
25 35
26 // Enable the user to trigger password generation manually. 36 // Enable the user to trigger password generation manually.
27 extern const base::Feature kEnableManualPasswordGeneration = { 37 extern const base::Feature kEnableManualPasswordGeneration = {
28 "enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT}; 38 "enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT};
29 39
40 // Disallow autofilling of the sync credential.
41 const base::Feature kProtectSyncCredential = {
42 "protect-sync-credential", base::FEATURE_DISABLED_BY_DEFAULT};
43
44 // Disallow autofilling of the sync credential only for transactional reauth
45 // pages.
46 const base::Feature kProtectSyncCredentialOnReauth = {
47 "protect-sync-credential-on-reauth", base::FEATURE_DISABLED_BY_DEFAULT};
48
30 } // namespace features 49 } // namespace features
31 50
32 } // namespace password_manager 51 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698