15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "components/password_manager/core/common/password_manager_pref_names.h"
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
7c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochnamespace password_manager {
8c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace prefs {
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
11a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#if defined(OS_WIN)
12a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Whether the password was blank, only valid if OS password was last changed
13a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// on or before the value contained in kOsPasswordLastChanged.
14a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kOsPasswordBlank[] = "password_manager.os_password_blank";
15a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
16a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// The number of seconds since epoch that the OS password was last changed.
17a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kOsPasswordLastChanged[] =
18a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "password_manager.os_password_last_changed";
19a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#endif
20a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
21a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// Boolean controlling whether the password manager allows to retrieve passwords
22a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// in clear text.
23a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kPasswordManagerAllowShowPasswords[] =
24a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    "profile.password_manager_allow_show_passwords";
25a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
26116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Boolean that is true if password saving is on (will record new
27116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// passwords and fill in known passwords). When it is false, it doesn't
28116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// ask if you want to save passwords but will continue to fill passwords.
29116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// Constant name and its value differ because of historical reasons as it
30116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// was not deemed important enough to add migration code just for name change.
31116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch// See http://crbug.com/392387
32116680a4aac90f2aa7413d9095a592090648e557Ben Murdochconst char kPasswordManagerSavingEnabled[] = "profile.password_manager_enabled";
33a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// A list of numbers. Each number corresponds to one of the domains monitored
355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// for save-password-prompt breakages. That number is a random index into
365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// the array of groups containing the monitored domain. That group should be
375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// used for reporting that domain.
385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char kPasswordManagerGroupsForDomains[] =
395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    "profile.password_manager_groups_for_domains";
405d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
41a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
42a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)// The local profile id for this profile.
43a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)const char kLocalProfileId[] = "profile.local_profile_id";
44a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)#endif
45a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}  // namespace prefs
47c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
48c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch}  // namespace password_manager
49