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

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

Issue 2815733003: cros: Add PinStorageProvider enum which describes pin backend in use. (Closed)
Patch Set: Address comments Created 3 years, 7 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 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 8508fe469e882614532f3b1ea71591f5f3f8e9ff..9a2f6c706b347f82c8397602e77197b97dee8635 100644
--- a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h
+++ b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h
@@ -36,11 +36,18 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry);
// flag is present.
bool IsPinEnabled(PrefService* pref_service);
+// What subsystem should provide pin storage and authentication?
+enum class PinStorageType { kPrefs, kCryptohome };
+
+// Returns the pin storage type that should be used. IsPinEnabled() must
+// return true for this result to be valid.
+PinStorageType GetPinStorageType();
+
// Returns true if the fingerprint unlock feature flag is present.
bool IsFingerprintEnabled();
-// Forcibly enable quick-unlock for testing.
-void EnableForTesting();
+// Forcibly enable all quick-unlock modes for testing.
+void EnableForTesting(PinStorageType pin_storage_type);
} // namespace quick_unlock
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698