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

Side by Side Diff: content/gpu/gpu_service_factory.cc

Issue 2398783002: Rename a bunch of Mojo Application stuff to reference Services. (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/gpu/gpu_service_factory.h" 5 #include "content/gpu/gpu_service_factory.h"
6 6
7 #if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS) 7 #if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS)
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "media/mojo/services/mojo_media_application_factory.h" // nogncheck 10 #include "media/mojo/services/mojo_media_application_factory.h" // nogncheck
11 #endif 11 #endif
12 12
13 namespace content { 13 namespace content {
14 14
15 GpuServiceFactory::GpuServiceFactory() {} 15 GpuServiceFactory::GpuServiceFactory() {}
16 16
17 GpuServiceFactory::~GpuServiceFactory() {} 17 GpuServiceFactory::~GpuServiceFactory() {}
18 18
19 void GpuServiceFactory::RegisterServices(ServiceMap* services) { 19 void GpuServiceFactory::RegisterServices(ServiceMap* services) {
20 #if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS) 20 #if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS)
21 MojoApplicationInfo service_info; 21 ServiceInfo info;
22 service_info.application_factory = 22 info.factory = base::Bind(&media::CreateMojoMediaApplication);
23 base::Bind(&media::CreateMojoMediaApplication); 23 info.use_own_thread = true;
24 service_info.use_own_thread = true; 24 services->insert(std::make_pair("service:media", info));
25 services->insert(std::make_pair("service:media", service_info));
26 #endif 25 #endif
27 } 26 }
28 27
29 } // namespace content 28 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698