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

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: Rebase 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 8135734019f2206a14e9eada1a09b00fb1ed6738..9bd21e357c46593fe29d22426af3a1f624a6b977 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
@@ -12,7 +12,6 @@ import org.chromium.content.browser.androidoverlay.AndroidOverlayProviderImpl;
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.media.mojom.AndroidOverlayProvider;
import org.chromium.mojo.system.impl.CoreImpl;
import org.chromium.services.service_manager.InterfaceRegistry;
@@ -54,8 +53,6 @@ class InterfaceRegistrarImpl {
if (sHasRegisteredRegistrars) return;
sHasRegisteredRegistrars = true;
InterfaceRegistrar.Registry.addContextRegistrar(new ContentContextInterfaceRegistrar());
- InterfaceRegistrar.Registry.addWebContentsRegistrar(
- new ContentWebContentsInterfaceRegistrar());
}
private static class ContentContextInterfaceRegistrar implements InterfaceRegistrar<Context> {
@@ -67,14 +64,4 @@ class InterfaceRegistrarImpl {
// TODO(avayvod): Register the PresentationService implementation here.
}
}
-
- 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));
- }
- }
- }
}

Powered by Google App Engine
This is Rietveld 408576698