| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 | 30 |
| 31 // Returns true if the fingerprint unlock feature flag is present. |
| 32 bool IsFingerprintUnlockEnabled(); |
| 33 |
| 31 // Forcibly enable quick-unlock for testing. | 34 // Forcibly enable quick-unlock for testing. |
| 32 void EnableQuickUnlockForTesting(); | 35 void EnableQuickUnlockForTesting(); |
| 33 | 36 |
| 34 } // namespace chromeos | 37 } // namespace chromeos |
| 35 | 38 |
| 36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| OLD | NEW |