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

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: Merge 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 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();
}

Powered by Google App Engine
This is Rietveld 408576698