OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
7 | 7 |
8 class PrefRegistrySimple; | 8 class PrefRegistrySimple; |
9 class PrefService; | 9 class PrefService; |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 // Enumeration specifiying the possible intervals before a strong auth | 13 // Enumeration specifiying the possible intervals before a strong auth |
14 // (password) is required to use quick unlock. These values correspond to the | 14 // (password) is required to use quick unlock. These values correspond to the |
15 // policy items of QuickUnlockTimeout (policy ID 352) in policy_templates.json, | 15 // policy items of QuickUnlockTimeout (policy ID 352) in policy_templates.json, |
16 // and should be updated accordingly. | 16 // and should be updated accordingly. |
17 enum class QuickUnlockPasswordConfirmationFrequency { | 17 enum class QuickUnlockPasswordConfirmationFrequency { |
18 SIX_HOURS = 0, | 18 SIX_HOURS = 0, |
19 TWELVE_HOURS = 1, | 19 TWELVE_HOURS = 1, |
20 DAY = 2, | 20 DAY = 2, |
21 WEEK = 3 | 21 WEEK = 3 |
22 }; | 22 }; |
23 | 23 |
24 // Register quick unlock prefs. | 24 // Register quick unlock prefs. |
25 void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry); | 25 void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry); |
26 | 26 |
27 // Returns true if PIN unlock is allowed by policy and the quick unlock feature | 27 // Returns true if PIN unlock is allowed by policy and the quick unlock feature |
28 // flag is present. | 28 // flag is present. |
29 bool IsPinUnlockEnabled(PrefService* pref_service); | 29 bool IsPinUnlockEnabled(PrefService* pref_service); |
30 // Returns true if the fingerprint unlock feature flag is present. | |
jdufault
2016/12/06 18:13:42
nit: newline above
sammiequon
2016/12/06 18:55:37
Done.
| |
31 bool IsFingerprintUnlockEnabled(); | |
30 | 32 |
31 // Forcibly enable quick-unlock for testing. | 33 // Forcibly enable quick-unlock for testing. |
32 void EnableQuickUnlockForTesting(); | 34 void EnableQuickUnlockForTesting(); |
33 | 35 |
34 } // namespace chromeos | 36 } // namespace chromeos |
35 | 37 |
36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
OLD | NEW |