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

Issue 15988011: Refine StorageMonitor storage device getter (Closed)

Created:
7 years, 6 months ago by Haojian Wu
Modified:
7 years, 6 months ago
Reviewers:
Hongbo Min, Lei Zhang
CC:
chromium-reviews, sail+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refine StorageMonitor storage device getter * Make GetAttachedStorage to return all available storages, including fixed and removable storages, instead of only removable storages. * Rename GetAttachedStorage to GetAllAvailableStorages for better understanding. BUG=None TEST=unit_tests --gtest_filter=StorageMonitorTest.* TEST=unit_tests --gtest_filter=StorageMonitorLinuxTest.* TEST=unit_tests --gtest_filter=StorageMonitorWinTest.* TEST=browser_tests --gtest_filter=SystemInfoStorageApiTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205758

Patch Set 1 #

Patch Set 2 : Update #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : Update according to lei's comments #

Patch Set 6 : Fix SystemInfoStorageApiTest failures in browser_tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -48 lines) Patch
M chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_dialog_controller.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/storage_monitor/image_capture_device_manager_unittest.mm View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/media_storage_util.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor.h View 1 2 3 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor.cc View 1 2 3 4 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_linux.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_mac.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_unittest.cc View 1 4 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_win.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/storage_monitor/storage_monitor_win_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/storage_monitor/volume_mount_watcher_win.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Haojian Wu
Hi, reviewers. I'm one of students in Chromium GSoC this year. I will co-work with ...
7 years, 6 months ago (2013-06-02 13:57:24 UTC) #1
Hongbo Min
Haojian, according to the Greg's comments, we won't introduce a new method to return all ...
7 years, 6 months ago (2013-06-03 01:34:41 UTC) #2
Haojian Wu
On 2013/06/03 01:34:41, Hongbo Min wrote: > Haojian, according to the Greg's comments, we won't ...
7 years, 6 months ago (2013-06-03 12:36:20 UTC) #3
vandebo (ex-Chrome)
On 2013/06/02 13:57:24, Haojian Wu wrote: > Hi, reviewers. I'm one of students in Chromium ...
7 years, 6 months ago (2013-06-03 15:46:16 UTC) #4
Haojian Wu
Thanks for the tips. Actually I'm not exactly clear about indicating who to review different ...
7 years, 6 months ago (2013-06-04 02:44:30 UTC) #5
Hongbo Min
https://codereview.chromium.org/15988011/diff/4001/chrome/browser/storage_monitor/storage_monitor.h File chrome/browser/storage_monitor/storage_monitor.h (right): https://codereview.chromium.org/15988011/diff/4001/chrome/browser/storage_monitor/storage_monitor.h#newcode147 chrome/browser/storage_monitor/storage_monitor.h:147: typedef std::map<std::string, StorageInfo> AllAvailableStorageMap; StorageMap might be a better ...
7 years, 6 months ago (2013-06-04 02:52:28 UTC) #6
Hongbo Min
Haojian, thanks for your effort on this. BTW, do you have right to run trybots?
7 years, 6 months ago (2013-06-04 02:53:56 UTC) #7
Haojian Wu
On 2013/06/04 02:53:56, Hongbo Min wrote: > Haojian, thanks for your effort on this. > ...
7 years, 6 months ago (2013-06-04 03:01:10 UTC) #8
Haojian Wu
About removing the judging statement of removable device in platform-specific impls. Here are explanation: In ...
7 years, 6 months ago (2013-06-04 03:52:09 UTC) #9
Greg Billock
On Mon, Jun 3, 2013 at 8:52 PM, <Hokein.Wu@gmail.com> wrote: > About removing the judging ...
7 years, 6 months ago (2013-06-04 05:37:25 UTC) #10
Hongbo Min
LGTM. Thanks.
7 years, 6 months ago (2013-06-05 09:23:25 UTC) #11
Haojian Wu
Ping: vandebo@ for GetAttachedStorage function. lei@ for platform-specific impls and unittests. Greg@ for adjustment in ...
7 years, 6 months ago (2013-06-06 05:47:58 UTC) #12
Lei Zhang
lgtm once you address the minor issues below: https://codereview.chromium.org/15988011/diff/11002/chrome/browser/storage_monitor/media_storage_util.cc File chrome/browser/storage_monitor/media_storage_util.cc (right): https://codereview.chromium.org/15988011/diff/11002/chrome/browser/storage_monitor/media_storage_util.cc#newcode57 chrome/browser/storage_monitor/media_storage_util.cc:57: if ...
7 years, 6 months ago (2013-06-06 10:15:07 UTC) #13
Haojian Wu
https://codereview.chromium.org/15988011/diff/11002/chrome/browser/storage_monitor/media_storage_util.cc File chrome/browser/storage_monitor/media_storage_util.cc (right): https://codereview.chromium.org/15988011/diff/11002/chrome/browser/storage_monitor/media_storage_util.cc#newcode57 chrome/browser/storage_monitor/media_storage_util.cc:57: if (it->device_id() == id && StorageInfo::IsRemovableDevice(id)) On 2013/06/06 10:15:09, ...
7 years, 6 months ago (2013-06-06 11:24:02 UTC) #14
Haojian Wu
ping vandebo@, Greg@. Thanks.
7 years, 6 months ago (2013-06-10 10:30:39 UTC) #15
wrong vandebo
Lei looked at the whole CL, so you're good.
7 years, 6 months ago (2013-06-11 22:58:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/Hokein.Wu@gmail.com/15988011/24001
7 years, 6 months ago (2013-06-12 03:02:15 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=49445
7 years, 6 months ago (2013-06-12 05:22:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/Hokein.Wu@gmail.com/15988011/31002
7 years, 6 months ago (2013-06-12 10:48:07 UTC) #19
commit-bot: I haz the power
7 years, 6 months ago (2013-06-12 13:40:32 UTC) #20
Message was sent while issue was closed.
Change committed as 205758

Powered by Google App Engine
This is Rietveld 408576698