|
|
Created:
6 years, 9 months ago by yoshiki Modified:
6 years, 7 months ago CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionReland of 260688: [Files.app] Use getDriveEntryProperties() to retrieve metadata
This is a reland of 260688, which is reverted due to false charge of build failure.
Previously, we used FileEntry.getMetadata() to retrieve filesystem metadata and getDriveEntryProperties() to get Drive metadata, so we need 2 calls for 1 file on Drive.
With this patch, getDriveEntryProperties() returns not only Drive metadata but also filesystem metadata. It's enough to call only getDriveEntryProperties() and we can reduce a number of calls by half.
BUG=345196
TEST=browser_test passes.
R=asargent@chromium.org, hashimoto@chromium.org, hirono@chromium.org
TBR=asargent@chromium.org, hashimoto@chromium.org, hirono@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266437
Patch Set 1 #
Total comments: 2
Patch Set 2 : Adressed the comment #
Total comments: 2
Patch Set 3 : Revert the change in patchset 2 #Patch Set 4 : rebase #
Messages
Total messages: 31 (0 generated)
PTAL, Thanks, hashimoto: C++ code hirono: JS code.
chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc lgtm
https://codereview.chromium.org/195763004/diff/60001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/195763004/diff/60001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:845: size: (entry.isFile ? (data.fileSize || 0) : -1), Currently the size of directories on the drive are 0. Maybe keeping 0 is better for avoiding regression.
@hirono, PTAL https://codereview.chromium.org/195763004/diff/60001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/195763004/diff/60001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:845: size: (entry.isFile ? (data.fileSize || 0) : -1), On 2014/03/14 08:47:29, hirono wrote: > Currently the size of directories on the drive are 0. > Maybe keeping 0 is better for avoiding regression. Yes, I completely agree with you. Done.
https://codereview.chromium.org/195763004/diff/80001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/195763004/diff/80001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:845: size: (entry.isFile ? (data.fileSize || 0) : -1), How about this line?
https://codereview.chromium.org/195763004/diff/80001/chrome/browser/resources... File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/195763004/diff/80001/chrome/browser/resources... chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:845: size: (entry.isFile ? (data.fileSize || 0) : -1), On 2014/03/17 02:28:00, hirono wrote: > How about this line? Sorry, I was misunderstood and changed my mind. I thought a size value of directory would be ignored, but it's wrong. I think we should keep it returning '-1' if it's directory. In Files.app, we distinguish looks between a 0-byte file and a 0-byte directory ('0' vs '---'), and '-1' is used as the size value representing directory, so it is reasonable to keep use '-1' as a size for directory.
On 2014/03/17 04:06:14, yoshiki wrote: > https://codereview.chromium.org/195763004/diff/80001/chrome/browser/resources... > File > chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js > (right): > > https://codereview.chromium.org/195763004/diff/80001/chrome/browser/resources... > chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:845: > size: (entry.isFile ? (data.fileSize || 0) : -1), > On 2014/03/17 02:28:00, hirono wrote: > > How about this line? > > Sorry, I was misunderstood and changed my mind. I thought a size value of > directory would be ignored, but it's wrong. > > I think we should keep it returning '-1' if it's directory. In Files.app, we > distinguish looks between a 0-byte file and a 0-byte directory ('0' vs '---'), > and '-1' is used as the size value representing directory, so it is reasonable > to keep use '-1' as a size for directory. Got it. Thanks! lgtm.
Thanks
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/195763004/100001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p...
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/195763004/100001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p...
@asargent: Could you take a look at the change in file_browser_private.idl? Thanks.
The CQ bit was checked by yoshiki@chromium.org
The CQ bit was unchecked by yoshiki@chromium.org
On 2014/03/31 07:09:02, yoshiki wrote: > @asargent: Could you take a look at the change in file_browser_private.idl? > Thanks. I'll add you as TBR, since this is a bit urgent. Thanks.
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/195763004/100001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, chrome_elf_unittests, chromedriver_unittests, components_unittests, compositor_unittests, content_browsertests, content_unittests, crypto_unittests, events_unittests, gfx_unittests, google_apis_unittests, gpu_unittests, installer_util_unittests, ipc_tests, jingle_unittests, media_unittests, mini_installer_test, nacl_integration, ppapi_unittests, printing_unittests, remoting_unittests, sql_unittests, sync_integration_tests, sync_unit_tests, telemetry_perf_unittests, telemetry_unittests, views_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
lgtm
Message was sent while issue was closed.
Committed patchset #3 manually as r260688 (presubmit successful).
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/195763004/140001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
Message was sent while issue was closed.
Committed patchset #4 manually as r266437 (presubmit successful). |