Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rewrite apps::SavedDevicesService as extensions::DevicePermissionsManager. | reillyg | 2014-09-29 | 1 | -123/+0 |
| | | | | | | | | | | | | | | | | | | This service doesn't need any Chrome dependencies after all and so it can move into //extensions. This will make it possible for the USB extensions API code to directly depend on it. In the process I have rewritten the service with a couple improvements: * C++11 for-each loops are used instead of explicit iterators. * The DevicePermissions object is no longer an inner class (so it can be forward declared) and it is explicitly copied when requested so that the ownership of data on the FILE and UI threads is clear. BUG= Review URL: https://codereview.chromium.org/606503002 Cr-Commit-Position: refs/heads/master@{#297230} | ||||
* | Add a service to track devices selected by the user. | reillyg | 2014-09-19 | 1 | -0/+123 |
apps::SavedDevicesService tracks USB devices that have been selected by the user in the context of a given extension. Devices that can be identified accurately after they have been reconnected because they have a serial number are written out to ExtensionPrefs. All others are only remembered until they are disconnected. A new OnDisconnect observer function has been added to UsbDevice to enable this monitoring. BUG=346953 Review URL: https://codereview.chromium.org/580963002 Cr-Commit-Position: refs/heads/master@{#295708} |