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

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

Issue 2015413002: Enable the PIN keyboard on the lockscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Address comments Created 4 years, 6 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/pin_storage_factory.h
diff --git a/chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h b/chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h
index 61814a126fb0da38ea776f2e06b5c567101ac149..505d6a6b74e61d034524561a0333299ffa7b1173 100644
--- a/chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h
+++ b/chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h
@@ -7,9 +7,14 @@
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+#include "components/signin/core/account_id/account_id.h"
class Profile;
+namespace user_manager {
+class User;
+}
+
namespace chromeos {
class PinStorage;
@@ -22,6 +27,14 @@ class PinStorageFactory : public BrowserContextKeyedServiceFactory {
// Returns the PinStorage instance for |profile|.
static PinStorage* GetForProfile(Profile* profile);
+ // Helper method that finds the PinStorage instance for |user|. This returns
+ // GetForProfile with the profile associated with |user|.
+ static PinStorage* GetForUser(const user_manager::User* user);
+
+ // Helper method that returns the PinStorage instance for |account_id|. This
+ // returns GetForProfile with the profile associated with |account_id|.
+ static PinStorage* GetForAccountId(const AccountId& account_id);
+
static PinStorageFactory* GetInstance();
private:
« no previous file with comments | « chrome/browser/chromeos/login/lock/screen_locker.cc ('k') | chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698