Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index e8a3eec1b8e87ce7d09fd93de129d72b7c2159eb..c893ce68976c338c16dc0e423f842ad8d624660e 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -4323,13 +4323,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(); |
} |