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

Issue 520553002: Correct cache-size calculation of MetadataCache. (Closed)

Created:
6 years, 3 months ago by fukino
Modified:
6 years, 3 months ago
Reviewers:
yoshiki
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Correct cache-size calculation of MetadataCache. - Make sure that the DirectoryContent.dispose() is called when necessary. - Defer dispose() temporarily when we need to replace directory contents. BUG=408893 TEST=watched the cache size manually, and ran browser_tests Committed: https://crrev.com/bc9ca87d6261fc87939aeac01879301e4486ec22 Cr-Commit-Position: refs/heads/master@{#292593}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Remove unnecessary if statement and added a comment. #

Patch Set 3 : Remove unintended newline. #

Patch Set 4 : Add a comment for metadata size synchronization. #

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

Messages

Total messages: 10 (0 generated)
fukino
fukino@chromium.org changed reviewers: + yoshiki@chromium.org
6 years, 3 months ago (2014-08-29 05:39:14 UTC) #1
fukino
yoshiki@, PTAL the CL? Thanks!
6 years, 3 months ago (2014-08-29 05:39:14 UTC) #2
yoshiki
https://codereview.chromium.org/520553002/diff/1/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/520553002/diff/1/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode569 ui/file_manager/file_manager/foreground/js/directory_contents.js:569: this.lastSpaceInMetadataCache_ = 0; Our of curiosity, we shouldn't use ...
6 years, 3 months ago (2014-08-29 05:51:32 UTC) #3
fukino
https://codereview.chromium.org/520553002/diff/1/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/520553002/diff/1/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode569 ui/file_manager/file_manager/foreground/js/directory_contents.js:569: this.lastSpaceInMetadataCache_ = 0; On 2014/08/29 05:51:32, yoshiki wrote: > ...
6 years, 3 months ago (2014-08-29 06:59:33 UTC) #4
yoshiki
lgtm with a nit https://codereview.chromium.org/520553002/diff/1/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/520553002/diff/1/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode569 ui/file_manager/file_manager/foreground/js/directory_contents.js:569: this.lastSpaceInMetadataCache_ = 0; On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 07:46:52 UTC) #5
fukino
Thanks! https://codereview.chromium.org/520553002/diff/1/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/520553002/diff/1/ui/file_manager/file_manager/foreground/js/directory_contents.js#newcode569 ui/file_manager/file_manager/foreground/js/directory_contents.js:569: this.lastSpaceInMetadataCache_ = 0; On 2014/08/29 07:46:52, yoshiki wrote: ...
6 years, 3 months ago (2014-08-29 07:56:46 UTC) #6
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 3 months ago (2014-08-29 07:57:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/520553002/60001
6 years, 3 months ago (2014-08-29 07:57:27 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 1a6301b10065a2e303e11acee14486955dc9c828
6 years, 3 months ago (2014-08-29 08:53:29 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:07:14 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bc9ca87d6261fc87939aeac01879301e4486ec22
Cr-Commit-Position: refs/heads/master@{#292593}

Powered by Google App Engine
This is Rietveld 408576698