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 { |
| 12 namespace quick_unlock { | |
|
jdufault
2016/10/31 22:22:02
Remove namespace
sammiequon
2016/11/01 04:33:18
If I remove this, should I change the name of Regi
jdufault
2016/11/02 18:44:02
Sure, RegisterQuickUnlockProfilePrefs().
sammiequon
2016/11/02 22:00:29
Done.
| |
| 9 | 13 |
| 10 // Returns true if quick unlock is allowed by policy and the feature flag is | 14 // Enumeration specifiying the possible intervals before a strong auth |
| 15 // (password) is required before continuing to use quick unlock. | |
| 16 enum class PasswordConfirmationFrequency { | |
| 17 SIX_HOURS = 0, | |
| 18 TWELVE_HOURS = 1, | |
| 19 DAY = 2, | |
| 20 WEEK = 3 | |
| 21 }; | |
| 22 | |
| 23 // Register quick unlock prefs. | |
| 24 void RegisterProfilePrefs(PrefRegistrySimple* registry); | |
| 25 | |
| 26 // Returns true if pin unlock is allowed by policy and the feature flag is | |
| 11 // present. | 27 // present. |
| 12 bool IsQuickUnlockEnabled(); | 28 bool IsPinUnlockEnabled(PrefService* pref_service); |
| 13 | 29 |
| 14 // Forcibly enable quick-unlock for testing. | 30 // Forcibly enable quick-unlock for testing. |
| 15 void EnableQuickUnlockForTesting(); | 31 void EnableQuickUnlockForTesting(); |
| 16 | 32 |
| 33 } // namespace quick_unlock | |
| 17 } // namespace chromeos | 34 } // namespace chromeos |
| 18 | 35 |
| 19 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| OLD | NEW |