DescriptionConnect to DeviceManager lazily in WebUSBClientImpl.
Every WebLocalFrameImpl results in the creation of a WebUSBClientImpl so
this patch delays the connection to the embedder's DeviceManager
implementation until it is actually needed. This means it will end up
being connected when the navigator.usb object is first accessed by
Javascript.
This avoids exposing everyone who has enabled the experimental web
platform features flag to instabilities in this new feature and will
generally reduce resource utilization for unused features when this is
shipped.
BUG=538339
Committed: https://crrev.com/fd6c723ff1b86bdc3c8036017eae3bbd80127840
Cr-Commit-Position: refs/heads/master@{#353909}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|