| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |