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

Unified Diff: services/shape_detection/shape_detection_service.cc

Issue 2655303005: Shape detection service: Add QR detection in Mac (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698