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

Issue 2751173004: Make navigator.usb open the DeviceManager connection lazily. (Closed)

Created:
3 years, 9 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 9 months ago
Reviewers:
mcasas
CC:
chromium-reviews, haraken, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make navigator.usb open the DeviceManager connection lazily. This change makes it so that accessing the navigator.usb object does not automatically cause Blink to connect to the browser process for an instance of the DeviceManager service. This is useful because it makes it easier for tests to register a Mojo service override before the connection is made. BUG=None Review-Url: https://codereview.chromium.org/2751173004 Cr-Commit-Position: refs/heads/master@{#457484} Committed: https://chromium.googlesource.com/chromium/src/+/7f238dd47bf022bc3f40fd64131c5a2784a9da3a

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -16 lines) Patch
M third_party/WebKit/Source/modules/webusb/USB.h View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.cpp View 6 chunks +33 lines, -16 lines 2 comments Download

Messages

Total messages: 13 (8 generated)
Reilly Grant (use Gerrit)
Please take a look.
3 years, 9 months ago (2017-03-16 00:27:56 UTC) #4
mcasas
lgtm with a question. https://codereview.chromium.org/2751173004/diff/1/third_party/WebKit/Source/modules/webusb/USB.cpp File third_party/WebKit/Source/modules/webusb/USB.cpp (right): https://codereview.chromium.org/2751173004/diff/1/third_party/WebKit/Source/modules/webusb/USB.cpp#newcode227 third_party/WebKit/Source/modules/webusb/USB.cpp:227: ensureDeviceManagerConnection(); Can USB receive connect/disconnect ...
3 years, 9 months ago (2017-03-16 17:00:48 UTC) #7
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2751173004/diff/1/third_party/WebKit/Source/modules/webusb/USB.cpp File third_party/WebKit/Source/modules/webusb/USB.cpp (right): https://codereview.chromium.org/2751173004/diff/1/third_party/WebKit/Source/modules/webusb/USB.cpp#newcode227 third_party/WebKit/Source/modules/webusb/USB.cpp:227: ensureDeviceManagerConnection(); On 2017/03/16 17:00:48, mcasas wrote: > Can USB ...
3 years, 9 months ago (2017-03-16 17:43:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2751173004/1
3 years, 9 months ago (2017-03-16 17:44:17 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 17:52:32 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7f238dd47bf022bc3f40fd64131c...

Powered by Google App Engine
This is Rietveld 408576698