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

Side by Side Diff: components/cast_channel/cast_socket_service_factory.cc

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: fix buildbot compile errors Created 3 years, 6 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 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 24 matching lines...) Expand all
46 return context; 44 return context;
47 } 45 }
48 46
49 scoped_refptr<RefcountedKeyedService> 47 scoped_refptr<RefcountedKeyedService>
50 CastSocketServiceFactory::BuildServiceInstanceFor( 48 CastSocketServiceFactory::BuildServiceInstanceFor(
51 BrowserContext* context) const { 49 BrowserContext* context) const {
52 return make_scoped_refptr(new CastSocketService()); 50 return make_scoped_refptr(new CastSocketService());
53 } 51 }
54 52
55 } // namespace cast_channel 53 } // namespace cast_channel
56 } // namespace api
57 } // namespace extensions
OLDNEW
« no previous file with comments | « components/cast_channel/cast_socket_service_factory.h ('k') | components/cast_channel/cast_socket_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698