| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_pref_names.h" | 5 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 6 | 6 |
| 7 namespace password_manager { | 7 namespace password_manager { |
| 8 | 8 |
| 9 namespace prefs { | 9 namespace prefs { |
| 10 | 10 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 // Whether the password was blank, only valid if OS password was last changed | 12 // Whether the password was blank, only valid if OS password was last changed |
| 13 // on or before the value contained in kOsPasswordLastChanged. | 13 // on or before the value contained in kOsPasswordLastChanged. |
| 14 const char kOsPasswordBlank[] = "password_manager.os_password_blank"; | 14 const char kOsPasswordBlank[] = "password_manager.os_password_blank"; |
| 15 | 15 |
| 16 // The number of seconds since epoch that the OS password was last changed. | 16 // The number of seconds since epoch that the OS password was last changed. |
| 17 const char kOsPasswordLastChanged[] = | 17 const char kOsPasswordLastChanged[] = |
| 18 "password_manager.os_password_last_changed"; | 18 "password_manager.os_password_last_changed"; |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 // Boolean controlling whether the password manager allows to retrieve passwords | 21 // Boolean controlling whether the password manager allows to retrieve passwords |
| 22 // in clear text. | 22 // in clear text. |
| 23 const char kPasswordManagerAllowShowPasswords[] = | 23 const char kPasswordManagerAllowShowPasswords[] = |
| 24 "profile.password_manager_allow_show_passwords"; | 24 "profile.password_manager_allow_show_passwords"; |
| 25 | 25 |
| 26 // Boolean that is true if the password manager is on (will record new | 26 // Boolean that is true if the password manager is on (will record new |
| 27 // passwords and fill in known passwords). | 27 // passwords and fill in known passwords). |
| 28 const char kPasswordManagerEnabled[] = "profile.password_manager_enabled"; | 28 const char kPasswordManagerEnabled[] = "profile.password_manager_enabled"; |
| 29 | 29 |
| 30 // Boolean controlling whether a prompt needs to be shown before saving the |
| 31 // password |
| 32 const char kPasswordManagerEnableAutomaticPasswordsSaving[] = |
| 33 "profile.password_manager_enable_automatic_passwords_saving"; |
| 34 |
| 30 // A list of numbers. Each number corresponds to one of the domains monitored | 35 // A list of numbers. Each number corresponds to one of the domains monitored |
| 31 // for save-password-prompt breakages. That number is a random index into | 36 // for save-password-prompt breakages. That number is a random index into |
| 32 // the array of groups containing the monitored domain. That group should be | 37 // the array of groups containing the monitored domain. That group should be |
| 33 // used for reporting that domain. | 38 // used for reporting that domain. |
| 34 const char kPasswordManagerGroupsForDomains[] = | 39 const char kPasswordManagerGroupsForDomains[] = |
| 35 "profile.password_manager_groups_for_domains"; | 40 "profile.password_manager_groups_for_domains"; |
| 36 | 41 |
| 37 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 42 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
| 38 // The local profile id for this profile. | 43 // The local profile id for this profile. |
| 39 const char kLocalProfileId[] = "profile.local_profile_id"; | 44 const char kLocalProfileId[] = "profile.local_profile_id"; |
| 40 #endif | 45 #endif |
| 41 | 46 |
| 42 } // namespace prefs | 47 } // namespace prefs |
| 43 | 48 |
| 44 } // namespace password_manager | 49 } // namespace password_manager |
| OLD | NEW |