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

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

Issue 2715823004: Add FingerprintUnlock KeyedService for each profile (Closed)
Patch Set: rebase Created 3 years, 10 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
deleted file mode 100644
index e2d8bdc2a37e502b77b3c76dd04974fdd1c787c7..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_STORAGE_FACTORY_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_STORAGE_FACTORY_H_
-
-#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 {
-namespace quick_unlock {
-
-class PinStorage;
-
-// Singleton that owns all PinStorage instances and associates them with
-// Profiles. Listens for the Profile's destruction notification and cleans up
-// the associated PinStorage.
-class PinStorageFactory : public BrowserContextKeyedServiceFactory {
- public:
- // 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:
- friend struct base::DefaultSingletonTraits<PinStorageFactory>;
-
- PinStorageFactory();
- ~PinStorageFactory() override;
-
- // BrowserContextKeyedServiceFactory:
- KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
-
- DISALLOW_COPY_AND_ASSIGN(PinStorageFactory);
-};
-
-} // namespace quick_unlock
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_STORAGE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698