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

Side by Side Diff: chrome/browser/chromeos/login/owner_settings_service_factory.h

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "base/memory/singleton.h"
11 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
12
13 class KeyedService;
14 class Profile;
15
16 namespace chromeos {
17
18 class OwnerSettingsService;
19
20 class OwnerSettingsServiceFactory : public BrowserContextKeyedServiceFactory {
21 public:
22 static OwnerSettingsService* GetForProfile(Profile* profile);
23
24 static OwnerSettingsServiceFactory* GetInstance();
25
26 private:
27 friend struct DefaultSingletonTraits<OwnerSettingsServiceFactory>;
28
29 OwnerSettingsServiceFactory();
30 virtual ~OwnerSettingsServiceFactory();
31
32 static KeyedService* BuildInstanceFor(content::BrowserContext* context);
33
34 // BrowserContextKeyedBaseFactory overrides:
35 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
36
37 // BrowserContextKeyedServiceFactory implementation:
38 virtual KeyedService* BuildServiceInstanceFor(
39 content::BrowserContext* browser_context) const OVERRIDE;
40
41 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceFactory);
42 };
43
44 } // namespace chromeos
45
46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698