[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}
Showing
Please register or sign in to comment