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

Issue 2052663003: Move implementation of QuotaManager.getVolumeInfo to base::SysInfo. (Closed)

Created:
4 years, 6 months ago by fukino
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, tzik
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move implementation of QuotaManager.getVolumeInfo to base::SysInfo. We get both total disk space and available disk space in multiple places. I'd like to move the QuotaManager's implementation to base::SysInfo so that we can share the implementation. This CL also changes the type of disk size from uint64_t to int64_t to be consistent with base::SysInfo::AmountOfFreeDiskSpace(). BUG=none Committed: https://crrev.com/50a448115ed04d2433e903affb17c8bcd617b367 Cr-Commit-Position: refs/heads/master@{#399252}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Address review comments. #

Total comments: 4

Patch Set 4 : Add AmountOfTotalDiskSpace() instead of GetDiskSpaceInfo(). #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -33 lines) Patch
M base/sys_info.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M base/sys_info_posix.cc View 1 2 3 2 chunks +27 lines, -3 lines 0 comments Download
M base/sys_info_unittest.cc View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M base/sys_info_win.cc View 1 2 3 2 chunks +32 lines, -4 lines 1 comment Download
M storage/browser/quota/quota_manager.cc View 1 2 3 2 chunks +8 lines, -25 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
fukino
thestig@, PTAL at sys_info. tzik@, PTAL at quota_manager. Thanks!
4 years, 6 months ago (2016-06-09 17:02:42 UTC) #3
Dan Beam
why do we need AmountOfFreeDiskSpace if we have GetDiskSpaceInfo? can we just change everything to ...
4 years, 6 months ago (2016-06-09 17:20:13 UTC) #4
fukino
Thank you for the review! As AmountOfFreeDiskSpace() looks handy for users who need only available ...
4 years, 6 months ago (2016-06-10 01:33:37 UTC) #5
Lei Zhang
https://codereview.chromium.org/2052663003/diff/40001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/2052663003/diff/40001/base/sys_info.h#newcode55 base/sys_info.h:55: static bool GetDiskSpaceInfo(const FilePath& path, Most of the functions ...
4 years, 6 months ago (2016-06-10 05:46:37 UTC) #6
fukino
Thank you! https://codereview.chromium.org/2052663003/diff/40001/base/sys_info.h File base/sys_info.h (right): https://codereview.chromium.org/2052663003/diff/40001/base/sys_info.h#newcode55 base/sys_info.h:55: static bool GetDiskSpaceInfo(const FilePath& path, On 2016/06/10 ...
4 years, 6 months ago (2016-06-10 12:10:09 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/2052663003/diff/60001/base/sys_info_win.cc File base/sys_info_win.cc (right): https://codereview.chromium.org/2052663003/diff/60001/base/sys_info_win.cc#newcode36 base/sys_info_win.cc:36: ULARGE_INTEGER available, total, free; One variable per line ...
4 years, 6 months ago (2016-06-10 17:43:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2052663003/60001
4 years, 6 months ago (2016-06-10 17:43:49 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/198949)
4 years, 6 months ago (2016-06-10 17:51:07 UTC) #12
tzik
lgtm
4 years, 6 months ago (2016-06-10 17:58:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2052663003/60001
4 years, 6 months ago (2016-06-10 17:59:55 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-10 19:36:07 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 19:36:11 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 19:37:17 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/50a448115ed04d2433e903affb17c8bcd617b367
Cr-Commit-Position: refs/heads/master@{#399252}

Powered by Google App Engine
This is Rietveld 408576698