OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "components/browser_context_keyed_service/browser_context_keyed_service
_factory.h" | 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
_factory.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 protected: | 33 protected: |
34 // BrowserContextKeyedServiceFactory implementation. | 34 // BrowserContextKeyedServiceFactory implementation. |
35 virtual BrowserContextKeyedService* BuildServiceInstanceFor( | 35 virtual BrowserContextKeyedService* BuildServiceInstanceFor( |
36 content::BrowserContext* profile) const OVERRIDE; | 36 content::BrowserContext* profile) const OVERRIDE; |
37 | 37 |
38 // Overridden to cause this object to be created when the profile is created. | 38 // Overridden to cause this object to be created when the profile is created. |
39 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; | 39 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; |
40 | 40 |
41 // Register the preferences related to cloud-based user policy. | 41 // Register the preferences related to cloud-based user policy. |
42 virtual void RegisterUserPrefs( | 42 virtual void RegisterProfilePrefs( |
43 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; | 43 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; |
44 | 44 |
45 private: | 45 private: |
46 friend struct DefaultSingletonTraits<UserPolicySigninServiceFactory>; | 46 friend struct DefaultSingletonTraits<UserPolicySigninServiceFactory>; |
47 | 47 |
48 UserPolicySigninServiceFactory(); | 48 UserPolicySigninServiceFactory(); |
49 virtual ~UserPolicySigninServiceFactory(); | 49 virtual ~UserPolicySigninServiceFactory(); |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceFactory); | 51 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceFactory); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace policy | 54 } // namespace policy |
55 | 55 |
56 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ | 56 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ |
OLD | NEW |