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

Side by Side Diff: chrome/browser/policy/schema_registry_service_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/schema_registry_service_factory.h" 5 #include "chrome/browser/policy/schema_registry_service_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/policy/schema_registry_service.h" 8 #include "chrome/browser/policy/schema_registry_service.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h" 9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
10 #include "components/policy/core/common/schema.h" 10 #include "components/policy/core/common/schema.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return NULL; 51 return NULL;
52 52
53 return service->GetBrokerForUser(user->email()); 53 return service->GetBrokerForUser(user->email());
54 } 54 }
55 55
56 } // namespace 56 } // namespace
57 #endif // OS_CHROMEOS 57 #endif // OS_CHROMEOS
58 58
59 // static 59 // static
60 SchemaRegistryServiceFactory* SchemaRegistryServiceFactory::GetInstance() { 60 SchemaRegistryServiceFactory* SchemaRegistryServiceFactory::GetInstance() {
61 return Singleton<SchemaRegistryServiceFactory>::get(); 61 return base::Singleton<SchemaRegistryServiceFactory>::get();
62 } 62 }
63 63
64 // static 64 // static
65 SchemaRegistryService* SchemaRegistryServiceFactory::GetForContext( 65 SchemaRegistryService* SchemaRegistryServiceFactory::GetForContext(
66 content::BrowserContext* context) { 66 content::BrowserContext* context) {
67 return GetInstance()->GetForContextInternal(context); 67 return GetInstance()->GetForContextInternal(context);
68 } 68 }
69 69
70 // static 70 // static
71 scoped_ptr<SchemaRegistryService> 71 scoped_ptr<SchemaRegistryService>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 bool SchemaRegistryServiceFactory::HasTestingFactory( 149 bool SchemaRegistryServiceFactory::HasTestingFactory(
150 content::BrowserContext* context) { 150 content::BrowserContext* context) {
151 return false; 151 return false;
152 } 152 }
153 153
154 void SchemaRegistryServiceFactory::CreateServiceNow( 154 void SchemaRegistryServiceFactory::CreateServiceNow(
155 content::BrowserContext* context) {} 155 content::BrowserContext* context) {}
156 156
157 } // namespace policy 157 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/schema_registry_service_factory.h ('k') | chrome/browser/precache/precache_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698