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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1922923002: bluetooth: Move requestDevice to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-request-device
Patch Set: Address moar comments! Created 4 years, 7 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698