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

Issue 23383009: [StorageMonitor] Handle EjectDevice call for MTP devices (Closed)

Created:
7 years, 4 months ago by Greg Billock
Modified:
7 years, 3 months ago
Reviewers:
Lei Zhang, sail
CC:
chromium-reviews, Lei Zhang, tommycli, vandebo (ex-Chrome)
Visibility:
Public.

Description

[StorageMonitor] Handle EjectDevice call for MTP devices This change includes intercept code to dispatch eject calls on MTP devices for all platforms. By and large, MTP devices don't need specific ejection APIs to be called -- the devices are safe to remove without notice. So the implementations mainly just simulate their removal and signal OK to the caller. When the device is then actually removed, the removal will be swallowed without additional notification. R=thestig@chromium.org BUG=257179 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222112

Patch Set 1 #

Total comments: 8

Patch Set 2 : Comments, const method #

Patch Set 3 : Rebase #

Patch Set 4 : const iterator #

Patch Set 5 : Rebase #

Patch Set 6 : Close camera after request eject (mac) #

Total comments: 2

Patch Set 7 : Windows MTP device name tweak #

Messages

Total messages: 9 (0 generated)
Greg Billock
7 years, 4 months ago (2013-08-21 21:01:56 UTC) #1
Lei Zhang
https://codereview.chromium.org/23383009/diff/1/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc File chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc (right): https://codereview.chromium.org/23383009/diff/1/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc#newcode177 chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc:177: StorageChanged(false, location); We may be able to do more ...
7 years, 4 months ago (2013-08-21 21:37:53 UTC) #2
Greg Billock
https://codereview.chromium.org/23383009/diff/1/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc File chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc (right): https://codereview.chromium.org/23383009/diff/1/chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc#newcode177 chrome/browser/storage_monitor/media_transfer_protocol_device_observer_linux.cc:177: StorageChanged(false, location); On 2013/08/21 21:37:53, Lei Zhang wrote: > ...
7 years, 4 months ago (2013-08-23 20:17:13 UTC) #3
Lei Zhang
lgtm
7 years, 4 months ago (2013-08-23 22:22:18 UTC) #4
Greg Billock
On 2013/08/23 22:22:18, Lei Zhang wrote: > lgtm Sailesh, any comment on the mac portions ...
7 years, 3 months ago (2013-09-06 20:22:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/23383009/23001
7 years, 3 months ago (2013-09-09 20:05:59 UTC) #6
sail
sorry for the slow response, mac code LGTM https://codereview.chromium.org/23383009/diff/20001/chrome/browser/storage_monitor/image_capture_device_manager.mm File chrome/browser/storage_monitor/image_capture_device_manager.mm (right): https://codereview.chromium.org/23383009/diff/20001/chrome/browser/storage_monitor/image_capture_device_manager.mm#newcode152 chrome/browser/storage_monitor/image_capture_device_manager.mm:152: base::scoped_nsobject<ImageCaptureDevice> ...
7 years, 3 months ago (2013-09-09 21:26:12 UTC) #7
commit-bot: I haz the power
Change committed as 222112
7 years, 3 months ago (2013-09-09 22:32:12 UTC) #8
Greg Billock
7 years, 3 months ago (2013-09-12 17:43:58 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/23383009/diff/20001/chrome/browser/storage_mo...
File chrome/browser/storage_monitor/image_capture_device_manager.mm (right):

https://codereview.chromium.org/23383009/diff/20001/chrome/browser/storage_mo...
chrome/browser/storage_monitor/image_capture_device_manager.mm:152:
base::scoped_nsobject<ImageCaptureDevice> camera_device(
On 2013/09/09 21:26:13, sail wrote:
> Is there a reason you need to keep a strong reference to this here? If there's
> not then you could just do:
>   ImageCaptureDevice* camera_device = [device_browser_ deviceForUUID:uuid];

No, not really. This is how we did it elsewhere, so I was just following that
basically.

Powered by Google App Engine
This is Rietveld 408576698