Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 955a304927aa1d896258da8026cf2578d55fba48..262805881e9e6bd2a9c0974e078a4edfa2837f6f 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -154,6 +154,7 @@ |
#include "core/timing/DOMWindowPerformance.h" |
#include "core/timing/Performance.h" |
#include "modules/app_banner/AppBannerController.h" |
+#include "modules/bluetooth/BluetoothSupplement.h" |
#include "modules/geolocation/GeolocationController.h" |
#include "modules/notifications/NotificationPermissionClient.h" |
#include "modules/permissions/PermissionController.h" |
@@ -1707,6 +1708,8 @@ void WebLocalFrameImpl::setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame> frame) |
provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::create(this)); |
+ if (RuntimeEnabledFeatures::webBluetoothEnabled()) |
+ BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth() : nullptr); |
if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
ScreenOrientationController::provideTo(*m_frame, m_client ? m_client->webScreenOrientationClient() : nullptr); |
if (RuntimeEnabledFeatures::presentationEnabled()) |