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

Side by Side Diff: chrome/browser/policy/profile_policy_connector_factory.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.h ('k') | chrome/browser/policy/schema_registry_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698