Description[CacheStorage] Updating cache size within the scheduled operation.
Previously scheduled cache mutation operations would begin the
size update calculation and then return to potentially begin
another mutation operation in parallel with the running size
update calculation. This could result in size held by CacheStorage
becoming mismatched with the actual cache size if Chrome were to
crash before the index could be written.
This change completes the size calculation before calling the
closure to begin the next scheduled operation.
BUG=678455
Review-Url: https://codereview.chromium.org/2613183003
Cr-Commit-Position: refs/heads/master@{#443059}
Committed: https://chromium.googlesource.com/chromium/src/+/3418f524d88d8851f26ea6a9ea0ac04cf6aea332
Patch Set 1 #
Messages
Total messages: 19 (10 generated)
|