| 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 5732a1245a69969e89ca737eab932a3dcb1dc256..ab11ffffa3560981aa66a222dbbb8b7d1c77aa23 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
|
| @@ -4,20 +4,14 @@
|
|
|
| package org.chromium.chrome.browser.mojo;
|
|
|
| -import android.content.Context;
|
| -
|
| import org.chromium.base.annotations.CalledByNative;
|
| import org.chromium.chrome.browser.payments.PaymentRequestFactory;
|
| -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.RenderFrameHost;
|
| import org.chromium.content_public.browser.WebContents;
|
| import org.chromium.payments.mojom.PaymentRequest;
|
| import org.chromium.services.service_manager.InterfaceRegistry;
|
| -import org.chromium.shape_detection.mojom.BarcodeDetection;
|
| -import org.chromium.shape_detection.mojom.TextDetection;
|
| import org.chromium.webshare.mojom.ShareService;
|
|
|
| @SuppressWarnings("MultipleTopLevelClassesInFile")
|
| @@ -26,24 +20,12 @@ import org.chromium.webshare.mojom.ShareService;
|
| class ChromeInterfaceRegistrar {
|
| @CalledByNative
|
| private static void registerMojoInterfaces() {
|
| - InterfaceRegistrar.Registry.addContextRegistrar(new ChromeContextInterfaceRegistrar());
|
| InterfaceRegistrar.Registry.addWebContentsRegistrar(
|
| new ChromeWebContentsInterfaceRegistrar());
|
| InterfaceRegistrar.Registry.addRenderFrameHostRegistrar(
|
| new ChromeRenderFrameHostInterfaceRegistrar());
|
| }
|
|
|
| - private static class ChromeContextInterfaceRegistrar implements InterfaceRegistrar<Context> {
|
| - @Override
|
| - public void registerInterfaces(
|
| - InterfaceRegistry registry, final Context applicationContext) {
|
| - registry.addInterface(
|
| - BarcodeDetection.MANAGER, new BarcodeDetectionImpl.Factory(applicationContext));
|
| - registry.addInterface(
|
| - TextDetection.MANAGER, new TextDetectionImpl.Factory(applicationContext));
|
| - }
|
| - }
|
| -
|
| private static class ChromeWebContentsInterfaceRegistrar
|
| implements InterfaceRegistrar<WebContents> {
|
| @Override
|
|
|