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

Issue 207383004: Adds a new removable storage provider for imageWriterPrivate on Chrome OS (Closed)

Created:
6 years, 9 months ago by Drew Haven
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org, stephenlin1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

On some Chrome OS devices there are drives that appear removable to the user but are listed in the system as fixed. This is the case with SD cards on parrot, where they are exposed as a fixed mmcblk device. This CL creates a new Chrome OS implementation for listing removable drives that uses the chromeos::disks::DiskMountManager, similar to how the Chrome OS ImageBurner is set up. BUG=352430 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260455

Patch Set 1 #

Total comments: 18

Patch Set 2 : Integrates review feedback: scoped_ptr abound! #

Patch Set 3 : Simplifies MockDiskMountManager changes. #

Patch Set 4 : Updates test checks to avoid ordering issues. #

Total comments: 4

Patch Set 5 : Some more test refactoring. #

Total comments: 10

Patch Set 6 : Small formatting update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -12 lines) Patch
A chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc View 1 2 3 4 1 chunk +154 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/disks/mock_disk_mount_manager.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chromeos/disks/mock_disk_mount_manager.cc View 1 2 3 4 5 1 chunk +12 lines, -9 lines 0 comments Download
M components/storage_monitor/storage_monitor_chromeos_unittest.cc View 1 2 3 4 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Drew Haven
Satoru, Could you take a look at this CL for me? I added a small ...
6 years, 9 months ago (2014-03-21 01:15:30 UTC) #1
Drew Haven
Toni, Would you mind reviewing this change for me? It turns out I should looked ...
6 years, 9 months ago (2014-03-21 17:29:54 UTC) #2
tbarzic
https://codereview.chromium.org/207383004/diff/1/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos.cc (right): https://codereview.chromium.org/207383004/diff/1/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos.cc#newcode1 chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 9 months ago (2014-03-22 02:01:02 UTC) #3
satorux1
+hashimoto for chromeos/disks.
6 years, 9 months ago (2014-03-24 01:07:09 UTC) #4
hashimoto
https://codereview.chromium.org/207383004/diff/1/chromeos/disks/mock_disk_mount_manager.h File chromeos/disks/mock_disk_mount_manager.h (right): https://codereview.chromium.org/207383004/diff/1/chromeos/disks/mock_disk_mount_manager.h#newcode70 chromeos/disks/mock_disk_mount_manager.h:70: // Adds a fake disk entry. This takes ownership ...
6 years, 9 months ago (2014-03-24 04:37:08 UTC) #5
Drew Haven
So, I can't set all the options I want from the existing methods. I could ...
6 years, 9 months ago (2014-03-24 22:33:24 UTC) #6
tbarzic
https://codereview.chromium.org/207383004/diff/1/chromeos/disks/mock_disk_mount_manager.h File chromeos/disks/mock_disk_mount_manager.h (right): https://codereview.chromium.org/207383004/diff/1/chromeos/disks/mock_disk_mount_manager.h#newcode71 chromeos/disks/mock_disk_mount_manager.h:71: void AddDiskEntry(Disk* disk); On 2014/03/24 22:33:25, Drew Haven wrote: ...
6 years, 9 months ago (2014-03-24 22:48:42 UTC) #7
Drew Haven
On 2014/03/24 22:48:42, tbarzic wrote: > https://codereview.chromium.org/207383004/diff/1/chromeos/disks/mock_disk_mount_manager.h > File chromeos/disks/mock_disk_mount_manager.h (right): > > https://codereview.chromium.org/207383004/diff/1/chromeos/disks/mock_disk_mount_manager.h#newcode71 > ...
6 years, 9 months ago (2014-03-25 01:35:39 UTC) #8
Drew Haven
So I updated the MockDiskMountManager changes to simplify them and changed the other call-site. It ...
6 years, 9 months ago (2014-03-25 01:42:53 UTC) #9
tbarzic
On 2014/03/25 01:42:53, Drew Haven wrote: > So I updated the MockDiskMountManager changes to simplify ...
6 years, 9 months ago (2014-03-25 02:08:33 UTC) #10
Drew Haven
On 2014/03/25 02:08:33, tbarzic wrote: > On 2014/03/25 01:42:53, Drew Haven wrote: > > So ...
6 years, 9 months ago (2014-03-26 00:19:37 UTC) #11
tbarzic
https://codereview.chromium.org/207383004/diff/50001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc (right): https://codereview.chromium.org/207383004/diff/50001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc#newcode80 chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc:80: bool DeviceListHasEntry(StorageDeviceList* list, storage_unit_id should be unique, so it ...
6 years, 9 months ago (2014-03-26 00:33:56 UTC) #12
tbarzic
lgtm, but please consider the approach I suggested for unit tests. https://codereview.chromium.org/207383004/diff/50001/components/storage_monitor/storage_monitor_chromeos_unittest.cc File components/storage_monitor/storage_monitor_chromeos_unittest.cc (right): ...
6 years, 9 months ago (2014-03-26 00:40:09 UTC) #13
Drew Haven
I did the refactoring as you suggested. Thanks for the review. https://codereview.chromium.org/207383004/diff/50001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc (right): ...
6 years, 9 months ago (2014-03-27 01:47:34 UTC) #14
Drew Haven
Steve, Could I get you to take a look at this to approve the StorageMonitor ...
6 years, 9 months ago (2014-03-27 01:54:18 UTC) #15
hashimoto
chromeos/disks lgtm https://codereview.chromium.org/207383004/diff/120001/chromeos/disks/mock_disk_mount_manager.cc File chromeos/disks/mock_disk_mount_manager.cc (right): https://codereview.chromium.org/207383004/diff/120001/chromeos/disks/mock_disk_mount_manager.cc#newcode188 chromeos/disks/mock_disk_mount_manager.cc:188: Disk* disk = new DiskMountManager::Disk(std::string(mount_info.source_path), nit: std::string(...) ...
6 years, 9 months ago (2014-03-27 02:22:39 UTC) #16
vandebo (ex-Chrome)
StorageMonitor test LGTM
6 years, 8 months ago (2014-03-27 16:15:32 UTC) #17
Drew Haven
https://codereview.chromium.org/207383004/diff/120001/chromeos/disks/mock_disk_mount_manager.cc File chromeos/disks/mock_disk_mount_manager.cc (right): https://codereview.chromium.org/207383004/diff/120001/chromeos/disks/mock_disk_mount_manager.cc#newcode188 chromeos/disks/mock_disk_mount_manager.cc:188: Disk* disk = new DiskMountManager::Disk(std::string(mount_info.source_path), On 2014/03/27 02:22:40, hashimoto ...
6 years, 8 months ago (2014-03-27 19:31:12 UTC) #18
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 8 months ago (2014-03-27 19:31:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/207383004/140001
6 years, 8 months ago (2014-03-27 19:33:45 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-27 20:02:34 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58044
6 years, 8 months ago (2014-03-27 20:02:35 UTC) #22
Drew Haven
On 2014/03/27 20:02:35, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 8 months ago (2014-03-27 21:06:38 UTC) #23
Drew Haven
On 2014/03/27 21:06:38, Drew Haven wrote: > On 2014/03/27 20:02:35, I haz the power (commit-bot) ...
6 years, 8 months ago (2014-03-27 21:07:28 UTC) #24
stevenjb
chromeos/disks lgtm
6 years, 8 months ago (2014-03-27 21:21:05 UTC) #25
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 8 months ago (2014-03-27 21:21:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/207383004/140001
6 years, 8 months ago (2014-03-27 21:22:03 UTC) #27
Drew Haven
The CQ bit was unchecked by haven@chromium.org
6 years, 8 months ago (2014-03-28 18:03:48 UTC) #28
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 8 months ago (2014-03-28 18:03:54 UTC) #29
cmp
The CQ bit was unchecked by cmp@chromium.org
6 years, 8 months ago (2014-03-30 16:57:41 UTC) #30
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 8 months ago (2014-03-30 16:59:52 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/207383004/140001
6 years, 8 months ago (2014-03-30 17:00:06 UTC) #32
commit-bot: I haz the power
6 years, 8 months ago (2014-03-30 18:21:15 UTC) #33
Message was sent while issue was closed.
Change committed as 260455

Powered by Google App Engine
This is Rietveld 408576698