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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2214383002: Move registration of Java mojo interfaces to the new InterfaceRegistrar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java-content-interface-registry
Patch Set: Created 4 years, 3 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/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 10187d104037ca97078b9e33ddeca6b6f2b2886f..723313685ab3cd1fa4c832e084263f628b37b3fb 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -118,6 +118,7 @@
#include "content/public/common/url_utils.h"
#include "content/public/common/web_preferences.h"
#include "device/geolocation/geolocation_service_context.h"
+#include "device/nfc/nfc.mojom.h"
#include "net/base/url_util.h"
#include "net/http/http_cache.h"
#include "net/http/http_transaction_factory.h"
@@ -4084,6 +4085,10 @@ void WebContentsImpl::RenderFrameCreated(RenderFrameHost* render_frame_host) {
render_frame_host->Send(
new FrameMsg_EnableViewSourceMode(render_frame_host->GetRoutingID()));
}
+#if defined(OS_ANDROID)
+ render_frame_host->GetInterfaceRegistry()->AddInterface(
+ GetJavaInterfaces()->CreateInterfaceFactory<device::nfc::NFC>());
+#endif
}
void WebContentsImpl::RenderFrameDeleted(RenderFrameHost* render_frame_host) {

Powered by Google App Engine
This is Rietveld 408576698