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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionFactory.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java b/chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java
index 799b847f8312bd5a4970ecef0d23cc515f5aa1d5..bb0353c8dda49bf2fca85c1ff8db7d014cdfee3a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java
@@ -8,8 +8,8 @@ import android.content.Context;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.chrome.browser.payments.PaymentRequestFactory;
-import org.chromium.chrome.browser.shapedetection.BarcodeDetectionFactory;
-import org.chromium.chrome.browser.shapedetection.TextDetectionFactory;
+import org.chromium.chrome.browser.shapedetection.BarcodeDetectionImpl;
+import org.chromium.chrome.browser.shapedetection.TextDetectionImpl;
import org.chromium.chrome.browser.webshare.ShareServiceImplementationFactory;
import org.chromium.content_public.browser.InterfaceRegistrar;
import org.chromium.content_public.browser.WebContents;
@@ -33,8 +33,9 @@ class ChromeContextInterfaceRegistrar implements InterfaceRegistrar<Context> {
@Override
public void registerInterfaces(InterfaceRegistry registry, final Context applicationContext) {
registry.addInterface(
- BarcodeDetection.MANAGER, new BarcodeDetectionFactory(applicationContext));
- registry.addInterface(TextDetection.MANAGER, new TextDetectionFactory(applicationContext));
+ BarcodeDetection.MANAGER, new BarcodeDetectionImpl.Factory(applicationContext));
+ registry.addInterface(
+ TextDetection.MANAGER, new TextDetectionImpl.Factory(applicationContext));
}
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/shapedetection/BarcodeDetectionFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698