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

Unified Diff: chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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..845574e052b62acad7d687d5357ac66fe6c97951 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,28 @@
#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
-// present.
-bool IsQuickUnlockEnabled();
+// Enumeration specifiying the possible intervals before a strong auth
+// (password) is required to use quick unlock. These values correspond to the
+// policy items of QuickUnlockTimeout (policy ID 352) in policy_templates.json,
+// and should be updated accordingly.
+enum class QuickUnlockPasswordConfirmationFrequency {
+ 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 quick unlock feature
+// flag is present.
+bool IsPinUnlockEnabled(PrefService* pref_service);
// Forcibly enable quick-unlock for testing.
void EnableQuickUnlockForTesting();

Powered by Google App Engine
This is Rietveld 408576698