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

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

Issue 2650583004: ShapeDetection: Move factory method to static nested class (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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderFactory.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderImpl.java b/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderImpl.java
index e94927ac15b05c31bac263e232393aca68c60d6e..975ca3d2a9447d4af37a72c56bfd5d66a6a724a8 100644
--- a/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderImpl.java
@@ -4,8 +4,11 @@
package org.chromium.content.browser.shapedetection;
+import android.content.Context;
+
import org.chromium.mojo.bindings.InterfaceRequest;
import org.chromium.mojo.system.MojoException;
+import org.chromium.services.service_manager.InterfaceFactory;
import org.chromium.shape_detection.mojom.FaceDetection;
import org.chromium.shape_detection.mojom.FaceDetectionProvider;
import org.chromium.shape_detection.mojom.FaceDetectorOptions;
@@ -25,4 +28,16 @@ public class FaceDetectionProviderImpl implements FaceDetectionProvider {
@Override
public void onConnectionError(MojoException e) {}
+
+ /**
+ * A factory class to register FaceDetectionProvider interface.
+ */
+ public static class Factory implements InterfaceFactory<FaceDetectionProvider> {
+ public Factory(Context context) {}
+
+ @Override
+ public FaceDetectionProvider createImpl() {
+ return new FaceDetectionProviderImpl();
+ }
+ }
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionProviderFactory.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698