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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java

Issue 2399593005: ShapeDetectionImpl: Android implementation of detectFace() (Closed)
Patch Set: Android implementation of detectFace() Created 4 years, 2 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: content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java b/content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java
index bfa5bbfa4eb64790698adf92360414c2c46ff280..7e3148e9fafe770b48b98c81a1df829ef476ec15 100644
--- a/content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java
@@ -8,6 +8,8 @@ import android.content.Context;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
+import org.chromium.blink.mojom.ShapeDetection;
+import org.chromium.content.browser.shapedetection.ShapeDetectionImpl;
import org.chromium.content_public.browser.InterfaceRegistrar;
import org.chromium.content_public.browser.WebContents;
import org.chromium.device.BatteryMonitor;
@@ -56,6 +58,8 @@ class ContentContextInterfaceRegistrar implements InterfaceRegistrar<Context> {
VibrationManager.MANAGER, new VibrationManagerImpl.Factory(applicationContext));
registry.addInterface(
BatteryMonitor.MANAGER, new BatteryMonitorFactory(applicationContext));
+ registry.addInterface(
+ ShapeDetection.MANAGER, new ShapeDetectionImpl.Factory(applicationContext));
// TODO(avayvod): Register the PresentationService implementation here.
}
}

Powered by Google App Engine
This is Rietveld 408576698