| Index: content/utility/utility_service_factory.cc
|
| diff --git a/content/utility/utility_service_factory.cc b/content/utility/utility_service_factory.cc
|
| index 734fdebd587cd6bff7c43b0644918fc0daa12f29..894bdbe02d16c186c805d2bb77c5a6578a67d813 100644
|
| --- a/content/utility/utility_service_factory.cc
|
| +++ b/content/utility/utility_service_factory.cc
|
| @@ -18,11 +18,21 @@
|
| #include "services/data_decoder/public/interfaces/constants.mojom.h"
|
| #include "services/shape_detection/public/interfaces/constants.mojom.h"
|
| #include "services/shape_detection/shape_detection_service.h"
|
| +#include "services/video_capture/public/interfaces/constants.mojom.h"
|
| +#include "services/video_capture/service_impl.h"
|
|
|
| #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
|
| #include "media/mojo/services/media_service_factory.h" // nogncheck
|
| #endif
|
|
|
| +namespace {
|
| +
|
| +std::unique_ptr<service_manager::Service> CreateVideoCaptureService() {
|
| + return base::MakeUnique<video_capture::ServiceImpl>();
|
| +}
|
| +
|
| +} // anonymous namespace
|
| +
|
| namespace content {
|
|
|
| namespace {
|
| @@ -42,6 +52,11 @@ UtilityServiceFactory::~UtilityServiceFactory() {}
|
| void UtilityServiceFactory::RegisterServices(ServiceMap* services) {
|
| GetContentClient()->utility()->RegisterServices(services);
|
|
|
| + ServiceInfo video_capture_info;
|
| + video_capture_info.factory = base::Bind(&CreateVideoCaptureService);
|
| + services->insert(
|
| + std::make_pair(video_capture::mojom::kServiceName, video_capture_info));
|
| +
|
| #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
|
| ServiceInfo info;
|
| info.factory = base::Bind(&media::CreateMediaService);
|
|
|