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

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

Issue 2865653002: [Device Service] Decouple NFC implementation from //content (Closed)
Patch Set: Response to reviews 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
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 10bb5e4020005a374ec82cd20ada6fd0e6063d00..2ef21599a42fe73eb7fce2c5ca6e9bcdc10674bd 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
@@ -13,7 +13,6 @@ import org.chromium.content.browser.installedapp.InstalledAppProviderFactory;
import org.chromium.content_public.browser.InterfaceRegistrar;
import org.chromium.content_public.browser.RenderFrameHost;
import org.chromium.content_public.browser.WebContents;
-import org.chromium.device.nfc.mojom.Nfc;
import org.chromium.installedapp.mojom.InstalledAppProvider;
import org.chromium.media.mojom.AndroidOverlayProvider;
import org.chromium.mojo.system.impl.CoreImpl;
@@ -56,8 +55,6 @@ class InterfaceRegistrarImpl {
if (sHasRegisteredRegistrars) return;
sHasRegisteredRegistrars = true;
InterfaceRegistrar.Registry.addContextRegistrar(new ContentContextInterfaceRegistrar());
- InterfaceRegistrar.Registry.addWebContentsRegistrar(
- new ContentWebContentsInterfaceRegistrar());
InterfaceRegistrar.Registry.addRenderFrameHostRegistrar(
new ContentRenderFrameHostInterfaceRegistrar());
}
@@ -72,16 +69,6 @@ class InterfaceRegistrarImpl {
}
}
- private static class ContentWebContentsInterfaceRegistrar
- implements InterfaceRegistrar<WebContents> {
- @Override
- public void registerInterfaces(InterfaceRegistry registry, final WebContents webContents) {
- if (ContentFeatureList.isEnabled(ContentFeatureList.WEB_NFC)) {
- registry.addInterface(Nfc.MANAGER, new NfcFactory(webContents));
- }
- }
- }
-
private static class ContentRenderFrameHostInterfaceRegistrar
implements InterfaceRegistrar<RenderFrameHost> {
@Override

Powered by Google App Engine
This is Rietveld 408576698