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

Unified Diff: services/shape_detection/shape_detection_service.cc

Issue 2861263002: Shape Detection: move Java Face detection classes to //services/shape_detection (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « services/shape_detection/android/java/src/org/chromium/shape_detection/InterfaceRegistrar.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89a705d24eed13ff612543ea9dbfaa14c2b2e50a..8f6c4532b04d6dcf7339a605a3294ad0ebd538da 100644
--- a/services/shape_detection/shape_detection_service.cc
+++ b/services/shape_detection/shape_detection_service.cc
@@ -35,13 +35,15 @@ void ShapeDetectionService::OnStart() {
registry_.AddInterface(
GetJavaInterfaces()->CreateInterfaceFactory<mojom::BarcodeDetection>());
registry_.AddInterface(
+ GetJavaInterfaces()
+ ->CreateInterfaceFactory<mojom::FaceDetectionProvider>());
+ registry_.AddInterface(
GetJavaInterfaces()->CreateInterfaceFactory<mojom::TextDetection>());
#else
registry_.AddInterface(base::Bind(&BarcodeDetectionImpl::Create));
registry_.AddInterface(base::Bind(&TextDetectionImpl::Create));
-#endif
-
registry_.AddInterface(base::Bind(&FaceDetectionProviderImpl::Create));
+#endif
}
void ShapeDetectionService::OnBindInterface(
« no previous file with comments | « services/shape_detection/android/java/src/org/chromium/shape_detection/InterfaceRegistrar.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698