DescriptionCurrently cache size in "Clear browsing data" dialog is shown as "Less than X" when selecting a time range (Where X is the total size of the cache).
To fix this, I count the cache size depending on a chosen time range.
The cache can be very big and we want a responsive ui, so if counting the cache takes too long I show the upper estimate instead.
As a future improvement I would like to propose a specialized version for SimpleBackendImpl. It could determine the size of a subset of the cache from the EntryMetadata stored in memory. This should be fast enough for any cache size.
BUG=671196
CQ-DEPEND=CL:2591743002
Patch Set 1 #Patch Set 2 : rebase #
Depends on Patchset: Messages
Total messages: 12 (10 generated)
|