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 PrefRegistrySimple; | |
| 9 class PrefService; | |
| 10 | |
| 8 namespace chromeos { | 11 namespace chromeos { |
| 9 | 12 |
| 10 // Returns true if quick unlock is allowed by policy and the feature flag is | 13 // Enumeration specifiying the possible intervals before a strong auth |
| 14 // (password) is required to use quick unlock. | |
|
stevenjb
2016/11/03 18:23:03
We should add a comment that these values are used
sammiequon
2016/11/03 20:36:39
Done.
| |
| 15 enum class PasswordConfirmationFrequency { | |
| 16 SIX_HOURS = 0, | |
| 17 TWELVE_HOURS = 1, | |
| 18 DAY = 2, | |
| 19 WEEK = 3 | |
| 20 }; | |
| 21 | |
| 22 // Register quick unlock prefs. | |
| 23 void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry); | |
| 24 | |
| 25 // Returns true if PIN unlock is allowed by policy and the feature flag is | |
|
stevenjb
2016/11/03 18:23:03
'and the quick unlock feature flag is present'
sammiequon
2016/11/03 20:36:39
Done.
| |
| 11 // present. | 26 // present. |
| 12 bool IsQuickUnlockEnabled(); | 27 bool IsPinUnlockEnabled(PrefService* pref_service); |
| 13 | 28 |
| 14 // Forcibly enable quick-unlock for testing. | 29 // Forcibly enable quick-unlock for testing. |
| 15 void EnableQuickUnlockForTesting(); | 30 void EnableQuickUnlockForTesting(); |
| 16 | 31 |
| 17 } // namespace chromeos | 32 } // namespace chromeos |
| 18 | 33 |
| 19 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| OLD | NEW |