Chromium Code Reviews| 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 PrefService; | |
| 9 | |
| 8 namespace chromeos { | 10 namespace chromeos { |
| 9 | 11 |
| 12 // Enumeration specifiying the possible intervals before a strong auth | |
| 13 // (password) is required before continuing to use quick unlock. | |
| 14 enum class PasswordConfirmationFrequency { | |
| 15 SIX_HOURS = 0, | |
| 16 TWELVE_HOURS = 1, | |
| 17 DAY = 2, | |
| 18 WEEK = 3 | |
| 19 }; | |
| 20 | |
| 10 // Returns true if quick unlock is allowed by policy and the feature flag is | 21 // Returns true if quick unlock is allowed by policy and the feature flag is |
| 11 // present. | 22 // present. |
| 12 bool IsQuickUnlockEnabled(); | 23 bool IsQuickUnlockEnabled(PrefService* pref_service); |
|
jdufault
2016/10/27 19:40:04
If you add IsPinUnlockEnabled, then I'm not sure w
sammiequon
2016/10/27 23:54:43
Done.
| |
| 24 | |
| 25 // Returns true if pin unlock is allowed by policy. | |
| 26 bool IsPinUnlockEnabled(PrefService* pref_service); | |
| 13 | 27 |
| 14 // Forcibly enable quick-unlock for testing. | 28 // Forcibly enable quick-unlock for testing. |
| 15 void EnableQuickUnlockForTesting(); | 29 void EnableQuickUnlockForTesting(); |
| 16 | 30 |
| 17 } // namespace chromeos | 31 } // namespace chromeos |
| 18 | 32 |
| 19 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| OLD | NEW |