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

Issue 580963002: Add a service to track devices selected by the user. (Closed)

Created:
6 years, 3 months ago by Reilly Grant (use Gerrit)
Modified:
6 years, 3 months ago
Reviewers:
scheib, pfeldman
CC:
chromium-reviews, tfarina, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add a service to track devices selected by the user. 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 Committed: https://crrev.com/89b276fbcd87b3ce88be7b0a00df6d9266d90ad6 Cr-Commit-Position: refs/heads/master@{#295708}

Patch Set 1 : #

Total comments: 18

Patch Set 2 : Fixed Windows build issues (Visual Studio bug). #

Patch Set 3 : Addressed all of scheib@'s feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+880 lines, -102 lines) Patch
M apps/BUILD.gn View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M apps/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M apps/apps.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
A apps/saved_devices_service.h View 1 2 1 chunk +123 lines, -0 lines 0 comments Download
A apps/saved_devices_service.cc View 1 2 1 chunk +320 lines, -0 lines 0 comments Download
A apps/saved_devices_service_factory.h View 1 chunk +35 lines, -0 lines 0 comments Download
A apps/saved_devices_service_factory.cc View 1 chunk +39 lines, -0 lines 0 comments Download
A apps/saved_devices_service_unittest.cc View 1 2 1 chunk +213 lines, -0 lines 0 comments Download
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 5 chunks +26 lines, -27 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M device/usb/usb_device.h View 4 chunks +14 lines, -3 lines 0 comments Download
M device/usb/usb_device_handle.h View 1 1 chunk +26 lines, -26 lines 0 comments Download
M device/usb/usb_device_handle_impl.h View 1 1 chunk +26 lines, -27 lines 0 comments Download
M device/usb/usb_device_impl.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M device/usb/usb_service_impl.cc View 4 chunks +36 lines, -19 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Reilly Grant (use Gerrit)
6 years, 3 months ago (2014-09-17 23:37:38 UTC) #6
scheib
https://codereview.chromium.org/580963002/diff/100001/apps/DEPS File apps/DEPS (right): https://codereview.chromium.org/580963002/diff/100001/apps/DEPS#newcode12 apps/DEPS:12: "+device/usb", Update apps/BUILD.gn also https://codereview.chromium.org/580963002/diff/100001/apps/apps.gypi File apps/apps.gypi (right): https://codereview.chromium.org/580963002/diff/100001/apps/apps.gypi#newcode48 ...
6 years, 3 months ago (2014-09-18 20:31:49 UTC) #9
Reilly Grant (use Gerrit)
https://codereview.chromium.org/580963002/diff/100001/apps/DEPS File apps/DEPS (right): https://codereview.chromium.org/580963002/diff/100001/apps/DEPS#newcode12 apps/DEPS:12: "+device/usb", On 2014/09/18 20:31:48, scheib wrote: > Update apps/BUILD.gn ...
6 years, 3 months ago (2014-09-18 21:28:00 UTC) #10
scheib
lgtm
6 years, 3 months ago (2014-09-18 22:37:51 UTC) #11
Reilly Grant (use Gerrit)
Adding pfeldman@ to review the android_usb_browsertests.cc fixes that are required due to a Visual Studio ...
6 years, 3 months ago (2014-09-18 22:47:54 UTC) #13
pfeldman
lgtm.
6 years, 3 months ago (2014-09-19 11:05:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/580963002/160001
6 years, 3 months ago (2014-09-19 14:32:26 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:160001) as 967f02b4072272c305a0083e36748a865a0e737f
6 years, 3 months ago (2014-09-19 15:00:11 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 15:00:56 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/89b276fbcd87b3ce88be7b0a00df6d9266d90ad6
Cr-Commit-Position: refs/heads/master@{#295708}

Powered by Google App Engine
This is Rietveld 408576698