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

Issue 2285393003: Add API to get a folder's size. (Closed)

Created:
4 years, 3 months ago by harukam
Modified:
4 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, asvitkine+watch_chromium.org, rginda+watch_chromium.org, jlklein+watch-closure_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add API to get a folder's size. BUG=474318 TEST=None We are attempting to add a feature in Files app which shows a folder's size. It's possible to implement it with JavaScript, but it's too slow. So, We've decided to add a new C++ API in this CL. Committed: https://crrev.com/18d04665c3e4aaf6bdfbb5330ca103f5b5513261 Cr-Commit-Position: refs/heads/master@{#416293}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add API to get a folder's size. #

Total comments: 2

Patch Set 3 : Add API to get a folder's size. #

Total comments: 10

Patch Set 4 : Add API to get a folder's size. #

Total comments: 8

Patch Set 5 : Add API to get a folder's size. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -1 line) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc View 1 2 3 4 3 chunks +50 lines, -1 line 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private_internal.idl View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/file_manager_private_custom_bindings.js View 1 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/closure_compiler/externs/file_manager_private.js View 1 1 chunk +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
harukam
PTAL
4 years, 3 months ago (2016-08-30 04:44:10 UTC) #2
fukino
https://codereview.chromium.org/2285393003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode974 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:974: const base::FilePath root_path = file_manager::util::GetLocalPathFromURL( Please check if the ...
4 years, 3 months ago (2016-08-30 05:17:06 UTC) #3
harukam
PTAL https://codereview.chromium.org/2285393003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode974 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:974: const base::FilePath root_path = file_manager::util::GetLocalPathFromURL( On 2016/08/30 05:17:06, ...
4 years, 3 months ago (2016-08-30 06:33:42 UTC) #6
fukino
lgtm with a nit. https://codereview.chromium.org/2285393003/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode981 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:981: OnDirectorySizeRetrieved, this)); This line's indent ...
4 years, 3 months ago (2016-08-30 06:55:49 UTC) #7
harukam
Please take a look. +mtomasz@ for the files under chrome/ +holte@ for extensions/browser/extension_function_histogram_value.h, tools/metrics/histograms/histograms.xml https://codereview.chromium.org/2285393003/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc ...
4 years, 3 months ago (2016-08-30 07:35:38 UTC) #9
Steven Holte
histograms lgtm
4 years, 3 months ago (2016-08-30 21:47:24 UTC) #11
harukam
Friendly ping -> mtomasz@
4 years, 3 months ago (2016-09-01 07:28:45 UTC) #12
mtomasz
Sorry for late. https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode966 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:966: SetError("File URL must be provided"); nit: ...
4 years, 3 months ago (2016-09-01 07:49:49 UTC) #13
harukam
Thanks. Please take another look. https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode966 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:966: SetError("File URL must be ...
4 years, 3 months ago (2016-09-02 01:33:32 UTC) #14
mtomasz
lgtm! https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode966 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:966: SetError("File URL must be provided"); On 2016/09/02 01:33:32, ...
4 years, 3 months ago (2016-09-02 01:36:38 UTC) #15
fukino
https://codereview.chromium.org/2285393003/diff/100001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/100001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode980 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:980: file_system_url.type() != storage::kFileSystemTypeRestrictedNativeLocal) { Should we add both file ...
4 years, 3 months ago (2016-09-02 01:40:25 UTC) #16
fukino
https://codereview.chromium.org/2285393003/diff/100001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/100001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode980 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:980: file_system_url.type() != storage::kFileSystemTypeRestrictedNativeLocal) { On 2016/09/02 01:40:25, fukino wrote: ...
4 years, 3 months ago (2016-09-02 02:33:53 UTC) #17
harukam
Thanks, please take one more look. https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc File chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc (right): https://codereview.chromium.org/2285393003/diff/80001/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc#newcode966 chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc:966: SetError("File URL must ...
4 years, 3 months ago (2016-09-02 03:45:38 UTC) #18
fukino
lgtm
4 years, 3 months ago (2016-09-02 03:47:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2285393003/120001
4 years, 3 months ago (2016-09-02 03:51:03 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/251854)
4 years, 3 months ago (2016-09-02 03:57:33 UTC) #24
harukam
isherman@, please take a look at 'extensions/browser/extension_function_histogram_value.h'.
4 years, 3 months ago (2016-09-02 05:19:39 UTC) #26
Ilya Sherman
extensions/browser/extension_function_histogram_value.h lgtm
4 years, 3 months ago (2016-09-02 17:29:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2285393003/120001
4 years, 3 months ago (2016-09-02 17:29:44 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 3 months ago (2016-09-02 17:34:31 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 17:37:19 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/18d04665c3e4aaf6bdfbb5330ca103f5b5513261
Cr-Commit-Position: refs/heads/master@{#416293}

Powered by Google App Engine
This is Rietveld 408576698