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..b8ad0dc5572d243a31c453a9aa18ed859e7d85b7 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,25 @@ |
| #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| +class PrefService; |
| + |
| namespace chromeos { |
| +// Enumeration specifiying the possible intervals before a strong auth |
| +// (password) is required before continuing to use quick unlock. |
| +enum class PasswordConfirmationFrequency { |
| + SIX_HOURS = 0, |
| + TWELVE_HOURS = 1, |
| + DAY = 2, |
| + WEEK = 3 |
| +}; |
| + |
| // Returns true if quick unlock is allowed by policy and the feature flag is |
| // present. |
| -bool IsQuickUnlockEnabled(); |
| +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.
|
| + |
| +// Returns true if pin unlock is allowed by policy. |
| +bool IsPinUnlockEnabled(PrefService* pref_service); |
| // Forcibly enable quick-unlock for testing. |
| void EnableQuickUnlockForTesting(); |