• ckitagawa's avatar
    Reland "[Paint Preview] Create total size budget" · ef447abf
    ckitagawa authored
    This is a reland of 09cf456a
    
    Failures were due to flakiness in FileManagerTest.OldestFileForCleanup
    
    Timing of last modified time seems to be racy leading to inconsistent
    behavior. The fix for this is manually setting the modified time to
    something longer.
    
    Original change's description:
    > [Paint Preview] Create total size budget
    >
    > This CL introduces a mechanism to determine the oldest files and
    > enforce a total disk size budget for captures. By default this is set to
    > 25 MB for the tab service. This will ensure we don't use excessive disk
    > space.
    >
    > Bug: 1086963
    > Change-Id: I71bd8efa5985214b322a4dc3048afbe4d0b717f2
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218548
    > Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    > Reviewed-by: Mehran Mahmoudi <mahmoudi@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#772809}
    
    Bug: 1086963, 1087592
    Change-Id: Id95442afcdeb55e60cafc4a8bf6cebef84b3fc8d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2220483Reviewed-by: default avatarMehran Mahmoudi <mahmoudi@chromium.org>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#773764}
    ef447abf
file_manager.cc 8.86 KB