| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index ed2b611bed047fcbbfaef807bb92a21c478f094b..ab5e509d86169f4093ad8baaf6f64a3496b100f7 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -4381,13 +4381,9 @@ void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme,
|
| }
|
|
|
| blink::WebBluetooth* RenderFrameImpl::bluetooth() {
|
| - // ChildThreadImpl::current() is null in some tests.
|
| - if (!bluetooth_ && ChildThreadImpl::current()) {
|
| - bluetooth_.reset(new WebBluetoothImpl(
|
| - GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(),
|
| - routing_id_));
|
| + if (!bluetooth_.get()) {
|
| + bluetooth_.reset(new WebBluetoothImpl(GetServiceRegistry()));
|
| }
|
| -
|
| return bluetooth_.get();
|
| }
|
|
|
|
|