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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1371793004: Provide the DeviceManager service to the renderer directly, no app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_permission
Patch Set: Fix header inclusion in chrome_content_browser_client.cc. Created 5 years, 3 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 5aed77678c39a1043d68ca080963acf06148d014..1322dcc2384687625b08dcc539cbd4d11d0d9cf2 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3860,9 +3860,7 @@ blink::WebBluetooth* RenderFrameImpl::bluetooth() {
blink::WebUSBClient* RenderFrameImpl::usbClient() {
#if !defined(OS_ANDROID)
if (!usb_client_) {
- mojo::ServiceProviderPtr device_services =
- ConnectToApplication(GURL(device::kDevicesMojoAppUrl));
- usb_client_.reset(new WebUSBClientImpl(device_services.Pass()));
+ usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry()));
}
#endif
return usb_client_.get();

Powered by Google App Engine
This is Rietveld 408576698