Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_AUTHENTICATION_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_AUTHENTICATION_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 class PinStorage; | |
| 13 | |
| 14 // Is PIN entry available for the given user? | |
| 15 bool IsPinAvailable(PinStorage* storage); | |
|
achuithb
2016/05/13 23:34:56
These should be in a new namespace nested in chrom
stevenjb
2016/05/16 16:33:34
+1
jdufault
2016/05/16 22:08:47
I wanted to keep them separate because conceptuall
| |
| 16 | |
| 17 // Returns true if the given PIN is valid and the user is allowed to submit a | |
| 18 // PIN (ie, no auth attempt will be made if IsPinAvailable returns false). | |
| 19 bool IsValidPin(PinStorage* storage, const std::string& raw_pin); | |
| 20 | |
| 21 } // namespace chromeos | |
| 22 | |
| 23 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_AUTHENTICATION_H_ | |
| OLD | NEW |