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

Issue 891853002: Add a UsbService::Observer function for cleanup actions. (Closed)

Created:
5 years, 10 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a UsbService::Observer function for cleanup actions. This patch adds an additional function to the UsbService::Observer interface that should be used to perform cleanup operations when a USB device is disconnected. This is separate from the OnDeviceRemoved function so that implementations of that function, which may depend on other subsystems' knowledge of a connected device, can run before any cleanup actions have taken place. A browsertest for the chrome.usb.getUserSelectedDevices is included which demonstrates the need for this 2-phase event handling. BUG=452298 Committed: https://crrev.com/dd6141829c1ad86297b0a2e7faea037ff110956b Cr-Commit-Position: refs/heads/master@{#314973}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -3 lines) Patch
M device/usb/usb_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M device/usb/usb_service.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/browser/api/device_permissions_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/usb/usb_apitest.cc View 5 chunks +60 lines, -2 lines 0 comments Download
A extensions/test/data/api_test/usb/get_user_selected_devices/background.js View 1 chunk +27 lines, -0 lines 0 comments Download
A extensions/test/data/api_test/usb/get_user_selected_devices/manifest.json View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Reilly Grant (use Gerrit)
Ken, please take a look a this patch we've been bikeshedding.
5 years, 10 months ago (2015-01-30 22:28:57 UTC) #2
Ken Rockot(use gerrit already)
I think we could make this work, but I am really not fond of the ...
5 years, 10 months ago (2015-02-02 19:41:50 UTC) #3
Reilly Grant (use Gerrit)
On 2015/02/02 19:41:50, Ken Rockot wrote: > I think we could make this work, but ...
5 years, 10 months ago (2015-02-03 02:28:44 UTC) #4
Ken Rockot(use gerrit already)
On 2015/02/03 02:28:44, reillyg wrote: > On 2015/02/02 19:41:50, Ken Rockot wrote: > > I ...
5 years, 10 months ago (2015-02-05 23:30:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891853002/1
5 years, 10 months ago (2015-02-06 02:14:58 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-06 04:15:18 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 04:16:08 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/dd6141829c1ad86297b0a2e7faea037ff110956b
Cr-Commit-Position: refs/heads/master@{#314973}

Powered by Google App Engine
This is Rietveld 408576698