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

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: Fix for component gn build. 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 f885435fe468cdb8326dc9a2d704ff76d196f3b4..eb5e0cd4ef442fa7e396fbed6f453fde1e80ad01 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"
@@ -1934,6 +1935,9 @@ void RenderFrameHostImpl::RegisterMojoServices() {
base::Unretained(this)));
}
+ GetServiceRegistry()->AddService<device::NFC>(
Reilly Grant (use Gerrit) 2016/04/25 21:48:35 The template parameter shouldn't be necessary here
shalamov 2016/04/26 10:17:32 Done.
+ base::Bind(&device::NFCImpl::Create));
+
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/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698