Chromium Code Reviews| Index: services/shape_detection/shape_detection_service.cc |
| diff --git a/services/shape_detection/shape_detection_service.cc b/services/shape_detection/shape_detection_service.cc |
| index d9210e9ef4888bfe47448e67487ba69f80d4bc47..3693beb285d0790521d5a995d2a967563dd85f7d 100644 |
| --- a/services/shape_detection/shape_detection_service.cc |
| +++ b/services/shape_detection/shape_detection_service.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/macros.h" |
| #include "services/service_manager/public/cpp/interface_registry.h" |
| #include "services/service_manager/public/cpp/service_context.h" |
| +#include "services/shape_detection/barcode_detection_impl.h" |
| #include "services/shape_detection/face_detection_provider_impl.h" |
| namespace shape_detection { |
| @@ -36,12 +37,14 @@ void ShapeDetectionService::OnStart() { |
| bool ShapeDetectionService::OnConnect( |
| const service_manager::ServiceInfo& remote_info, |
| service_manager::InterfaceRegistry* registry) { |
| + DVLOG(1) << __func__; |
|
Robert Sesek
2017/02/01 19:34:11
Remove?
mcasas
2017/02/01 20:40:21
Oops, done.
|
| // Add a reference to the service and tie it to the lifetime of the |
| // InterfaceRegistry's connection. |
| std::unique_ptr<service_manager::ServiceContextRef> connection_ref = |
| ref_factory_->CreateRef(); |
| registry->AddConnectionLostClosure( |
| base::Bind(&OnConnectionLost, base::Passed(&connection_ref))); |
| + registry->AddInterface(base::Bind(&BarcodeDetectionImpl::Create)); |
| registry->AddInterface(base::Bind(&FaceDetectionProviderImpl::Create)); |
| return true; |
| } |