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 namespace chromeos { | 8 namespace chromeos { |
| 9 | 9 |
| 10 // Enumeration specifiying the possible intervals before a strong auth | |
| 11 // (password) is required before continuing to use quick unlock. | |
| 12 enum class PasswordConfirmation { | |
|
jdufault
2016/10/04 23:26:21
This should also be named PasswordConfirmationFreq
sammiequon
2016/10/18 22:47:49
Done.
| |
| 13 SIX_HOURS = 0, | |
| 14 TWELVE_HOURS = 1, | |
| 15 DAY = 2, | |
| 16 WEEK = 3 | |
| 17 }; | |
| 18 | |
| 10 // Returns true if quick unlock is allowed by policy and the feature flag is | 19 // Returns true if quick unlock is allowed by policy and the feature flag is |
| 11 // present. | 20 // present. |
| 12 bool IsQuickUnlockEnabled(); | 21 bool IsQuickUnlockEnabled(); |
| 13 | 22 |
| 14 // Forcibly enable quick-unlock for testing. | 23 // Forcibly enable quick-unlock for testing. |
| 15 void EnableQuickUnlockForTesting(); | 24 void EnableQuickUnlockForTesting(); |
| 16 | 25 |
| 17 } // namespace chromeos | 26 } // namespace chromeos |
| 18 | 27 |
| 19 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ | 28 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ |
| OLD | NEW |