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

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: Addresses the review inputs. Created 4 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 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_DISABLED_BY_DEFAULT};
16
17 // Enables dropping the credential used to sync passwords.
vabr (Chromium) 2016/02/11 12:30:21 nit: Reformulate for clarity: // Drop the sync cre
Pritam Nikam 2016/02/25 14:16:06 Done.
18 const base::Feature kDropSyncCredential = {"drop-sync-credential",
19 base::FEATURE_DISABLED_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
26 // Enable dropping the credential used to sync passwords.
27 const base::Feature kEnableDropSyncCredential = {
28 "enable-drop-sync-credential", base::FEATURE_DISABLED_BY_DEFAULT};
Bernhard Bauer 2016/02/11 11:12:40 These two features are unused and redundant.
Pritam Nikam 2016/02/25 14:16:06 Done.
29
30 // Enable saving and filling for the sync signin form. Currently the default
31 // behavior.
32 const base::Feature kEnableManagerForSyncSignin = {
33 "enable-manager-for-sync-signin", base::FEATURE_DISABLED_BY_DEFAULT};
34
16 // Enable supporting of updating password in the password manager on a password 35 // Enable supporting of updating password in the password manager on a password
17 // change form submit. 36 // change form submit.
18 const base::Feature kEnablePasswordChangeSupport = { 37 const base::Feature kEnablePasswordChangeSupport = {
19 "enable-password-change-support", base::FEATURE_DISABLED_BY_DEFAULT}; 38 "enable-password-change-support", base::FEATURE_DISABLED_BY_DEFAULT};
20 39
21 // Enable a context menu item in the password field that allows the user 40 // Enable a context menu item in the password field that allows the user
22 // to manually enforce saving of their password. 41 // to manually enforce saving of their password.
23 const base::Feature kEnablePasswordForceSaving = { 42 const base::Feature kEnablePasswordForceSaving = {
24 "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT}; 43 "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT};
25 44
26 // Enable the user to trigger password generation manually. 45 // Enable the user to trigger password generation manually.
27 extern const base::Feature kEnableManualPasswordGeneration = { 46 extern const base::Feature kEnableManualPasswordGeneration = {
28 "enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT}; 47 "enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT};
29 48
49 // Enables saving and filling for the sync signin form.
50 const base::Feature kManagerForSyncSignin = {"manager-for-sync-signin",
vabr (Chromium) 2016/02/11 12:30:21 This one is actually obsolete and ready for remova
Pritam Nikam 2016/02/25 14:16:06 Acknowledged.
51 base::FEATURE_DISABLED_BY_DEFAULT};
52
53 // Disallow autofilling of the sync credential.
54 const base::Feature kProtectSyncCredential = {
55 "protect-sync-credential", base::FEATURE_DISABLED_BY_DEFAULT};
56
57 // Disallow autofilling of the sync credential only for transactional reauth
58 // pages.
59 const base::Feature kProtectSyncCredentialOnReauth = {
60 "protect-sync-credential-on-reauth", base::FEATURE_DISABLED_BY_DEFAULT};
61
30 } // namespace features 62 } // namespace features
31 63
32 } // namespace password_manager 64 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698