| 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:
|
|
|