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/keyed_service/content/browser_context_keyed_service_factory
.h" | 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 content::BrowserContext* profile) const override; | 43 content::BrowserContext* profile) const override; |
44 | 44 |
45 // Overridden to cause this object to be created when the profile is created. | 45 // Overridden to cause this object to be created when the profile is created. |
46 bool ServiceIsCreatedWithBrowserContext() const override; | 46 bool ServiceIsCreatedWithBrowserContext() const override; |
47 | 47 |
48 // Register the preferences related to cloud-based user policy. | 48 // Register the preferences related to cloud-based user policy. |
49 void RegisterProfilePrefs( | 49 void RegisterProfilePrefs( |
50 user_prefs::PrefRegistrySyncable* registry) override; | 50 user_prefs::PrefRegistrySyncable* registry) override; |
51 | 51 |
52 private: | 52 private: |
53 friend struct DefaultSingletonTraits<UserPolicySigninServiceFactory>; | 53 friend struct base::DefaultSingletonTraits<UserPolicySigninServiceFactory>; |
54 | 54 |
55 UserPolicySigninServiceFactory(); | 55 UserPolicySigninServiceFactory(); |
56 ~UserPolicySigninServiceFactory() override; | 56 ~UserPolicySigninServiceFactory() override; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceFactory); | 58 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceFactory); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace policy | 61 } // namespace policy |
62 | 62 |
63 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ | 63 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ |
OLD | NEW |