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..2e2a5de6715f2c5a9d0b79651dca7e69851e611c 100644 |
| --- a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h |
| +++ b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h |
| @@ -5,15 +5,32 @@ |
| #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 { |
| +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.
|
| + |
| +// 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 |
| +}; |
| + |
| +// Register quick unlock prefs. |
| +void RegisterProfilePrefs(PrefRegistrySimple* registry); |
| -// Returns true if quick unlock is allowed by policy and the feature flag is |
| +// Returns true if pin unlock is allowed by policy and the feature flag is |
| // present. |
| -bool IsQuickUnlockEnabled(); |
| +bool IsPinUnlockEnabled(PrefService* pref_service); |
| // Forcibly enable quick-unlock for testing. |
| void EnableQuickUnlockForTesting(); |
| +} // namespace quick_unlock |
| } // namespace chromeos |
| #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |