| OLD | NEW |
| 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 | 11 // Enable affiliation based matching, so that credentials stored for an Android |
| 12 // application will also be considered matches for, and be filled into | 12 // application will also be considered matches for, and be filled into |
| 13 // corresponding Web applications. | 13 // corresponding Web applications. |
| 14 const base::Feature kAffiliationBasedMatching = { | 14 const base::Feature kAffiliationBasedMatching = { |
| 15 "affiliation-based-matching", base::FEATURE_ENABLED_BY_DEFAULT}; | 15 "affiliation-based-matching", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 16 | 16 |
| 17 // Drop the sync credential if captured for saving, do not offer it for saving. | 17 // Drop the sync credential if captured for saving, do not offer it for saving. |
| 18 const base::Feature kDropSyncCredential = {"drop-sync-credential", | 18 const base::Feature kDropSyncCredential = {"drop-sync-credential", |
| 19 base::FEATURE_ENABLED_BY_DEFAULT}; | 19 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 20 | 20 |
| 21 // Enable a context menu item in the password field that allows the user | 21 // Enable a context menu item in the password field that allows the user |
| 22 // to manually enforce saving of their password. | 22 // to manually enforce saving of their password. |
| 23 const base::Feature kEnablePasswordForceSaving = { | 23 const base::Feature kEnablePasswordForceSaving = { |
| 24 "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT}; | 24 "enable-password-force-saving", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 25 | 25 |
| 26 // Enable the user to trigger password generation manually. | 26 // Enable the user to trigger password generation manually. |
| 27 extern const base::Feature kEnableManualPasswordGeneration = { | 27 extern const base::Feature kEnableManualPasswordGeneration = { |
| 28 "enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT}; | 28 "enable-manual-password-generation", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 29 | 29 |
| 30 // Enables username correction while saving username and password details. |
| 31 extern const base::Feature kEnableUsernameCorrection{ |
| 32 "EnableUsernameCorrection", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 33 |
| 30 // Disallow autofilling of the sync credential. | 34 // Disallow autofilling of the sync credential. |
| 31 const base::Feature kProtectSyncCredential = { | 35 const base::Feature kProtectSyncCredential = { |
| 32 "protect-sync-credential", base::FEATURE_DISABLED_BY_DEFAULT}; | 36 "protect-sync-credential", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 33 | 37 |
| 34 // Disallow autofilling of the sync credential only for transactional reauth | 38 // Disallow autofilling of the sync credential only for transactional reauth |
| 35 // pages. | 39 // pages. |
| 36 const base::Feature kProtectSyncCredentialOnReauth = { | 40 const base::Feature kProtectSyncCredentialOnReauth = { |
| 37 "protect-sync-credential-on-reauth", base::FEATURE_DISABLED_BY_DEFAULT}; | 41 "protect-sync-credential-on-reauth", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 38 | 42 |
| 39 const base::Feature kPasswordImportExport = {"password-import-export", | 43 const base::Feature kPasswordImportExport = {"password-import-export", |
| 40 base::FEATURE_DISABLED_BY_DEFAULT}; | 44 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 41 | 45 |
| 42 // Control whether users can view and copy passwords. This is only used for | 46 // Control whether users can view and copy passwords. This is only used for |
| 43 // Android, the desktop version of Chrome always allows users to view | 47 // Android, the desktop version of Chrome always allows users to view |
| 44 // passwords. | 48 // passwords. |
| 45 const base::Feature kViewPasswords = {"view-passwords", | 49 const base::Feature kViewPasswords = {"view-passwords", |
| 46 base::FEATURE_DISABLED_BY_DEFAULT}; | 50 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 47 | 51 |
| 48 // Enables the experiment for the password manager to only fill on account | 52 // Enables the experiment for the password manager to only fill on account |
| 49 // selection, rather than autofilling on page load, with highlighting of fields. | 53 // selection, rather than autofilling on page load, with highlighting of fields. |
| 50 const base::Feature kFillOnAccountSelect = {"fill-on-account-select", | 54 const base::Feature kFillOnAccountSelect = {"fill-on-account-select", |
| 51 base::FEATURE_DISABLED_BY_DEFAULT}; | 55 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 52 | 56 |
| 53 } // namespace features | 57 } // namespace features |
| 54 | 58 |
| 55 } // namespace password_manager | 59 } // namespace password_manager |
| OLD | NEW |