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..fce6e5927ff47582454dad5f1faa3d424d4eee12 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 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.
|
| +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 |
|
stevenjb
2016/11/03 18:23:03
'and the quick unlock feature flag is present'
sammiequon
2016/11/03 20:36:39
Done.
|
| // present. |
| -bool IsQuickUnlockEnabled(); |
| +bool IsPinUnlockEnabled(PrefService* pref_service); |
| // Forcibly enable quick-unlock for testing. |
| void EnableQuickUnlockForTesting(); |