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

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

Issue 1912363002: [webnfc] Add default implementation for nfc mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for Reilly's 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 1cc0c86a1e2884e3eb1599028822c30e680aeb49..91733068a18e197e96b287cf273f81e957f33930 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -78,6 +78,7 @@
#include "content/public/common/isolated_world_ids.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
+#include "device/nfc/nfc_impl.h"
#include "ui/accessibility/ax_tree.h"
#include "ui/accessibility/ax_tree_update.h"
#include "ui/gfx/geometry/quad_f.h"
@@ -1936,6 +1937,8 @@ void RenderFrameHostImpl::RegisterMojoServices() {
base::Unretained(this)));
}
+ GetServiceRegistry()->AddService(base::Bind(&device::NFCImpl::Create));
ncarter (slow) 2016/04/26 22:28:26 Do we plan to implement a c++, non-stub version of
Reilly Grant (use Gerrit) 2016/04/26 22:35:33 Actually, now that I think about it again I'd rath
+
if (!frame_mojo_shell_)
frame_mojo_shell_.reset(new FrameMojoShell(this));
« no previous file with comments | « content/browser/DEPS ('k') | content/content_browser.gypi » ('j') | device/nfc/nfc_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698