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

Issue 310633002: Files.app: Let DirectoryContents controls metadata cache size by relative value (Closed)

Created:
6 years, 6 months ago by yoshiki
Modified:
6 years, 6 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Visibility:
Public.

Description

Files.app: Let DirectoryContents controls metadata cache size by relative value Previously, DirectoryContents controlled the size of metadata cache by absolute value. But multiple of instances of DirectoryContents might be created at same time and it might set wrong cache size. This patch lets DirectoryContents controls metadata cache size by relative value, instead of absolute value, and solves that problem. BUG=373629 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275771

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : Adressed the comment. #

Total comments: 4

Patch Set 3 : Addressed the comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -8 lines) Patch
M ui/file_manager/file_manager/foreground/js/directory_contents.js View 1 2 3 5 chunks +23 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/directory_model.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js View 1 2 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
yoshiki
@mtoamsz: PTAL. Thanks.
6 years, 6 months ago (2014-06-05 17:52:10 UTC) #1
mtomasz
On 2014/06/05 17:52:10, yoshiki wrote: > @mtoamsz: PTAL. Thanks. Why is it possible to create ...
6 years, 6 months ago (2014-06-06 00:28:09 UTC) #2
yoshiki
On 2014/06/06 00:28:09, mtomasz wrote: > On 2014/06/05 17:52:10, yoshiki wrote: > > @mtoamsz: PTAL. ...
6 years, 6 months ago (2014-06-06 02:31:15 UTC) #3
mtomasz
https://codereview.chromium.org/310633002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_contents.js File ui/file_manager/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/310633002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode494 ui/file_manager/file_manager/foreground/js/directory_contents.js:494: var delta = size - this.currentMetadataCacheSize_; CurrentMetadataCacheSize_ is always ...
6 years, 6 months ago (2014-06-06 03:34:44 UTC) #4
yoshiki
@mtomasz: PTAL https://codereview.chromium.org/310633002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_contents.js File ui/file_manager/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/310633002/diff/40001/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode494 ui/file_manager/file_manager/foreground/js/directory_contents.js:494: var delta = size - this.currentMetadataCacheSize_; On ...
6 years, 6 months ago (2014-06-06 04:24:26 UTC) #5
mtomasz
https://codereview.chromium.org/310633002/diff/60001/ui/file_manager/file_manager/foreground/js/directory_contents.js File ui/file_manager/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/310633002/diff/60001/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode459 ui/file_manager/file_manager/foreground/js/directory_contents.js:459: this.currentMetadataCacheSize_ = 0; Naming is confusing. This is not ...
6 years, 6 months ago (2014-06-06 07:38:14 UTC) #6
yoshiki
@mtomasz: PTAL. Thanks. https://codereview.chromium.org/310633002/diff/60001/ui/file_manager/file_manager/foreground/js/directory_contents.js File ui/file_manager/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/310633002/diff/60001/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode459 ui/file_manager/file_manager/foreground/js/directory_contents.js:459: this.currentMetadataCacheSize_ = 0; On 2014/06/06 07:38:14, ...
6 years, 6 months ago (2014-06-06 08:17:22 UTC) #7
mtomasz
Thanks! LGTM!
6 years, 6 months ago (2014-06-06 09:20:05 UTC) #8
yoshiki
The CQ bit was checked by yoshiki@chromium.org
6 years, 6 months ago (2014-06-06 09:21:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/310633002/80001
6 years, 6 months ago (2014-06-06 09:23:50 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 13:24:17 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 15:14:59 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/35140)
6 years, 6 months ago (2014-06-06 15:15:00 UTC) #13
yoshiki
The CQ bit was checked by yoshiki@chromium.org
6 years, 6 months ago (2014-06-06 15:27:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/310633002/100001
6 years, 6 months ago (2014-06-06 15:28:05 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 19:12:49 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 20:56:40 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/35273)
6 years, 6 months ago (2014-06-06 20:56:41 UTC) #18
yoshiki
The CQ bit was checked by yoshiki@chromium.org
6 years, 6 months ago (2014-06-09 01:53:50 UTC) #19
yoshiki
The CQ bit was unchecked by yoshiki@chromium.org
6 years, 6 months ago (2014-06-09 01:53:56 UTC) #20
yoshiki
The CQ bit was checked by yoshiki@chromium.org
6 years, 6 months ago (2014-06-09 01:53:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/310633002/120001
6 years, 6 months ago (2014-06-09 01:54:01 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-09 03:47:24 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 05:08:49 UTC) #24
Message was sent while issue was closed.
Change committed as 275771

Powered by Google App Engine
This is Rietveld 408576698