Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h

Issue 2387253002: cros: Added policies for screen unlock. (Closed)
Patch Set: Fixed patch set 5 errors. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 class PrefService;
9
8 namespace chromeos { 10 namespace chromeos {
9 11
12 // Enumeration specifiying the possible intervals before a strong auth
13 // (password) is required before continuing to use quick unlock.
14 enum class PasswordConfirmationFrequency {
15 SIX_HOURS = 0,
16 TWELVE_HOURS = 1,
17 DAY = 2,
18 WEEK = 3
19 };
20
10 // Returns true if quick unlock is allowed by policy and the feature flag is 21 // Returns true if quick unlock is allowed by policy and the feature flag is
11 // present. 22 // present.
12 bool IsQuickUnlockEnabled(); 23 bool IsQuickUnlockEnabled(PrefService* pref_service);
24
25 // Returns true if pin unlock is allowed by policy.
26 bool IsPinUnlockEnabled(PrefService* pref_service);
13 27
14 // Forcibly enable quick-unlock for testing. 28 // Forcibly enable quick-unlock for testing.
15 void EnableQuickUnlockForTesting(); 29 void EnableQuickUnlockForTesting();
16 30
17 } // namespace chromeos 31 } // namespace chromeos
18 32
19 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_ 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698