Chromium Code Reviews| 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 password saving is on (will record new |
| 27 // passwords and fill in known passwords). | 27 // passwords and fill in known passwords). When it is false, it doesn't |
| 28 const char kPasswordManagerEnabled[] = "profile.password_manager_enabled"; | 28 // ask if you want to save passwords but will continue to fill passwords. |
| 29 // See http://crbug.com/392387 | |
|
vabr (Chromium)
2014/07/10 08:36:54
nit: Please also explain the difference in the con
Nikhil
2014/07/10 09:56:35
Done.
| |
| 30 const char kPasswordManagerSavingEnabled[] = "profile.password_manager_enabled"; | |
| 29 | 31 |
| 30 // A list of numbers. Each number corresponds to one of the domains monitored | 32 // 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 | 33 // 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 | 34 // the array of groups containing the monitored domain. That group should be |
| 33 // used for reporting that domain. | 35 // used for reporting that domain. |
| 34 const char kPasswordManagerGroupsForDomains[] = | 36 const char kPasswordManagerGroupsForDomains[] = |
| 35 "profile.password_manager_groups_for_domains"; | 37 "profile.password_manager_groups_for_domains"; |
| 36 | 38 |
| 37 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 39 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
| 38 // The local profile id for this profile. | 40 // The local profile id for this profile. |
| 39 const char kLocalProfileId[] = "profile.local_profile_id"; | 41 const char kLocalProfileId[] = "profile.local_profile_id"; |
| 40 #endif | 42 #endif |
| 41 | 43 |
| 42 } // namespace prefs | 44 } // namespace prefs |
| 43 | 45 |
| 44 } // namespace password_manager | 46 } // namespace password_manager |
| OLD | NEW |