forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ServiceWorker: Check liveness of ServiceWorkerDatabase before deletin…
…g an old diskcache After diskcache migration, ServiceWorkerStorage posts a delayed task to delete an old diskcache and to record the result in ServiceWorkerDatabase. This task accesses the database without any liveness check, so the task possibly crashes if the database is closed before that. This CL makes the task to confirm the liveness before accessing the database. BUG=487482,505333 Review URL: https://codereview.chromium.org/1210073009 Cr-Commit-Position: refs/heads/master@{#336951}
- Loading branch information
Showing
2 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters