Chromium Code Reviews| 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 27 matching lines...) Expand all Loading... | |
| 38 DeviceManagementService* device_management_service); | 38 DeviceManagementService* device_management_service); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 // BrowserContextKeyedServiceFactory implementation. | 41 // BrowserContextKeyedServiceFactory implementation. |
| 42 virtual BrowserContextKeyedService* BuildServiceInstanceFor( | 42 virtual BrowserContextKeyedService* BuildServiceInstanceFor( |
| 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 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; | 46 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; |
| 47 | 47 |
| 48 // Don't create this service for tests. | |
| 49 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | |
|
Andrew T Wilson (Slow)
2014/03/10 12:30:45
I'm fundamentally opposed to this change - we shou
| |
| 50 | |
| 48 // Register the preferences related to cloud-based user policy. | 51 // Register the preferences related to cloud-based user policy. |
| 49 virtual void RegisterProfilePrefs( | 52 virtual void RegisterProfilePrefs( |
| 50 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; | 53 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; |
| 51 | 54 |
| 52 private: | 55 private: |
| 53 friend struct DefaultSingletonTraits<UserPolicySigninServiceFactory>; | 56 friend struct DefaultSingletonTraits<UserPolicySigninServiceFactory>; |
| 54 | 57 |
| 55 UserPolicySigninServiceFactory(); | 58 UserPolicySigninServiceFactory(); |
| 56 virtual ~UserPolicySigninServiceFactory(); | 59 virtual ~UserPolicySigninServiceFactory(); |
| 57 | 60 |
| 58 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceFactory); | 61 DISALLOW_COPY_AND_ASSIGN(UserPolicySigninServiceFactory); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace policy | 64 } // namespace policy |
| 62 | 65 |
| 63 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ | 66 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_POLICY_SIGNIN_SERVICE_FACTORY_H_ |
| OLD | NEW |