SessionStorage: Pause mojo receiver while connecting to database.
Creation and deletion of namespace should never be re-ordered. Creation doesn't depend on having the database open (which often allows delaying opening the database until after chrome startup has completed), however deletion does sometimes require the database. Previously part of the delete operation could be reordered to happen after later create operations, resulting in situations where state could get out of sync. This CL fixes all that by completely pausing processing incoming mojo calls while the database is being opened. This will ensure that no new namespaces get created while we're waiting for the database to be opened while in the process of deleting a namespace. Bug: 1128318 Change-Id: Iea28b92172da88d3719853a42dbb323da2522eb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2419124 Auto-Submit: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:Daniel Murphy <dmurph@chromium.org> Commit-Queue: Daniel Murphy <dmurph@chromium.org> Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#809187}
Showing
Please register or sign in to comment