Index: content/gpu/gpu_service_factory.cc |
diff --git a/content/gpu/gpu_service_factory.cc b/content/gpu/gpu_service_factory.cc |
index 5625a63a5a6470bb0c0c94aafa936e5375adc0df..06b777c73788ad5c9efc338a8f5e36ec2f2bad89 100644 |
--- a/content/gpu/gpu_service_factory.cc |
+++ b/content/gpu/gpu_service_factory.cc |
@@ -7,6 +7,8 @@ |
#include <memory> |
#include "base/threading/thread_task_runner_handle.h" |
+#include "services/shape_detection/public/interfaces/constants.mojom.h" |
+#include "services/shape_detection/shape_detection_service.h" |
#if defined(ENABLE_MOJO_MEDIA_IN_GPU_PROCESS) |
#include "base/bind.h" |
@@ -33,6 +35,12 @@ void GpuServiceFactory::RegisterServices(ServiceMap* services) { |
info.use_own_thread = true; |
services->insert(std::make_pair("media", info)); |
#endif |
+ |
+ ServiceInfo shape_detection_info; |
+ shape_detection_info.factory = |
+ base::Bind(&shape_detection::ShapeDetectionService::Create); |
+ services->insert(std::make_pair(shape_detection::mojom::kServiceName, |
+ shape_detection_info)); |
} |
} // namespace content |