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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1486043002: [webnfc] Implement push method for Android nfc mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step_6_add_mojo_service_CL
Patch Set: Fixes for review comments. Created 4 years, 8 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/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 91733068a18e197e96b287cf273f81e957f33930..4a3fd125ea25b4bc4b941f8ce624461dd5354bb2 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -1937,7 +1937,10 @@ void RenderFrameHostImpl::RegisterMojoServices() {
base::Unretained(this)));
}
+ // On android, NFC is implemented as a Java mojo service.
+#if !defined(OS_ANDROID)
GetServiceRegistry()->AddService(base::Bind(&device::NFCImpl::Create));
+#endif
if (!frame_mojo_shell_)
frame_mojo_shell_.reset(new FrameMojoShell(this));
« no previous file with comments | « no previous file | content/content.gyp » ('j') | device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java » ('J')

Powered by Google App Engine
This is Rietveld 408576698