| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "extensions/browser/api/cast_channel/cast_socket_service_factory.h" | 5 #include "components/cast_channel/cast_socket_service_factory.h" |
| 6 | 6 |
| 7 #include "components/cast_channel/cast_socket_service.h" |
| 7 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 8 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 8 #include "extensions/browser/api/cast_channel/cast_socket_service.h" | |
| 9 | 9 |
| 10 namespace extensions { | |
| 11 namespace api { | |
| 12 namespace cast_channel { | 10 namespace cast_channel { |
| 13 | 11 |
| 14 using content::BrowserContext; | 12 using content::BrowserContext; |
| 15 | 13 |
| 16 namespace { | 14 namespace { |
| 17 | 15 |
| 18 base::LazyInstance<CastSocketServiceFactory>::DestructorAtExit service_factory = | 16 base::LazyInstance<CastSocketServiceFactory>::DestructorAtExit service_factory = |
| 19 LAZY_INSTANCE_INITIALIZER; | 17 LAZY_INSTANCE_INITIALIZER; |
| 20 } // namespace | 18 } // namespace |
| 21 | 19 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 45 content::BrowserContext* context) const { | 43 content::BrowserContext* context) const { |
| 46 return context; | 44 return context; |
| 47 } | 45 } |
| 48 | 46 |
| 49 KeyedService* CastSocketServiceFactory::BuildServiceInstanceFor( | 47 KeyedService* CastSocketServiceFactory::BuildServiceInstanceFor( |
| 50 BrowserContext* context) const { | 48 BrowserContext* context) const { |
| 51 return new CastSocketService(); | 49 return new CastSocketService(); |
| 52 } | 50 } |
| 53 | 51 |
| 54 } // namespace cast_channel | 52 } // namespace cast_channel |
| 55 } // namespace api | |
| 56 } // namespace extensions | |
| OLD | NEW |