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

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 chrome_browser.gypi. 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/renderer/usb/web_usb_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index e049d7926312c99bf786c3f126fe0c49a79476c7..0bb8cb9863fab8b9972e74da7aa54cf4bb510277 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3855,9 +3855,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();
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/renderer/usb/web_usb_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698