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

Unified Diff: content/child/blink_platform_impl.cc

Issue 699843003: bluetooth: Impl uses new WebBluetoothDevice in content/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix compile failure on android. Created 6 years, 1 month 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/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index ac9b7a385fb08dffb6749217380dd8e936c22dd2..4834082702e75762a7f3c7a65f42f379455f76a0 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -30,6 +30,7 @@
#include "blink/public/resources/grit/blink_resources.h"
#include "content/app/resources/grit/content_resources.h"
#include "content/app/strings/grit/content_strings.h"
+#include "content/child/bluetooth/web_bluetooth_impl.h"
#include "content/child/child_thread.h"
#include "content/child/content_child_helpers.h"
#include "content/child/geofencing/web_geofencing_provider_impl.h"
@@ -440,6 +441,8 @@ void BlinkPlatformImpl::InternalInit() {
if (ChildThread::current()) {
geofencing_provider_.reset(new WebGeofencingProviderImpl(
ChildThread::current()->thread_safe_sender()));
+ bluetooth_.reset(
+ new WebBluetoothImpl(ChildThread::current()->thread_safe_sender()));
thread_safe_sender_ = ChildThread::current()->thread_safe_sender();
notification_dispatcher_ =
ChildThread::current()->notification_dispatcher();
@@ -1044,6 +1047,10 @@ blink::WebGeofencingProvider* BlinkPlatformImpl::geofencingProvider() {
return geofencing_provider_.get();
}
+blink::WebBluetooth* BlinkPlatformImpl::bluetooth() {
+ return bluetooth_.get();
+}
+
blink::WebNotificationManager*
BlinkPlatformImpl::notificationManager() {
if (!thread_safe_sender_.get() || !notification_dispatcher_.get())

Powered by Google App Engine
This is Rietveld 408576698