Chromium Code Reviews| Index: chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h |
| diff --git a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h |
| index c7666c5ee6f7648535d6da4a2a471823436016ad..47966ca4f8ddd17f32b051167920e8a55eb629e3 100644 |
| --- a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h |
| +++ b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h |
| @@ -5,11 +5,26 @@ |
| #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| +class PrefRegistrySimple; |
| +class PrefService; |
| + |
| namespace chromeos { |
| -// Returns true if quick unlock is allowed by policy and the feature flag is |
| +// Enumeration specifiying the possible intervals before a strong auth |
| +// (password) is required before continuing to use quick unlock. |
|
jdufault
2016/11/02 22:52:59
drop 'before continuing'
sammiequon
2016/11/03 00:45:52
Done.
|
| +enum class PasswordConfirmationFrequency { |
| + SIX_HOURS = 0, |
| + TWELVE_HOURS = 1, |
| + DAY = 2, |
| + WEEK = 3 |
| +}; |
| + |
| +// Register quick unlock prefs. |
| +void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry); |
| + |
| +// Returns true if pin unlock is allowed by policy and the feature flag is |
|
jdufault
2016/11/02 22:52:59
nit: pin => PIN
sammiequon
2016/11/03 00:45:52
Done.
|
| // present. |
| -bool IsQuickUnlockEnabled(); |
| +bool IsPinUnlockEnabled(PrefService* pref_service); |
| // Forcibly enable quick-unlock for testing. |
| void EnableQuickUnlockForTesting(); |