OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 5 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "chrome/browser/policy/profile_policy_connector.h" | 9 #include "chrome/browser/policy/profile_policy_connector.h" |
10 #include "chrome/browser/profiles/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #else | 24 #else |
25 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 25 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
26 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" | 26 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" |
27 #endif | 27 #endif |
28 #endif | 28 #endif |
29 | 29 |
30 namespace policy { | 30 namespace policy { |
31 | 31 |
32 // static | 32 // static |
33 ProfilePolicyConnectorFactory* ProfilePolicyConnectorFactory::GetInstance() { | 33 ProfilePolicyConnectorFactory* ProfilePolicyConnectorFactory::GetInstance() { |
34 return Singleton<ProfilePolicyConnectorFactory>::get(); | 34 return base::Singleton<ProfilePolicyConnectorFactory>::get(); |
35 } | 35 } |
36 | 36 |
37 // static | 37 // static |
38 ProfilePolicyConnector* ProfilePolicyConnectorFactory::GetForBrowserContext( | 38 ProfilePolicyConnector* ProfilePolicyConnectorFactory::GetForBrowserContext( |
39 content::BrowserContext* context) { | 39 content::BrowserContext* context) { |
40 return GetInstance()->GetForBrowserContextInternal(context); | 40 return GetInstance()->GetForBrowserContextInternal(context); |
41 } | 41 } |
42 | 42 |
43 // static | 43 // static |
44 scoped_ptr<ProfilePolicyConnector> | 44 scoped_ptr<ProfilePolicyConnector> |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 bool ProfilePolicyConnectorFactory::HasTestingFactory( | 169 bool ProfilePolicyConnectorFactory::HasTestingFactory( |
170 content::BrowserContext* context) { | 170 content::BrowserContext* context) { |
171 return false; | 171 return false; |
172 } | 172 } |
173 | 173 |
174 void ProfilePolicyConnectorFactory::CreateServiceNow( | 174 void ProfilePolicyConnectorFactory::CreateServiceNow( |
175 content::BrowserContext* context) {} | 175 content::BrowserContext* context) {} |
176 | 176 |
177 } // namespace policy | 177 } // namespace policy |
OLD | NEW |