DescriptionServiceWorker: Make ServiceWorkerStorage more self-defensive
Before this patch, ServiceWorkerStorage provided IsDisabled() to check the
storage availability for storage clients and asked them to check it before
accessing the storage. However, the convention was not always obeyed and some
clients sometimes accessed the disabled storage.
This patch stops providing IsDisabled() for the clients, and makes sure to fail
operations and return an appropriate error value when the storage is disabled.
The clients now no longer take care of the storage availability.
BUG=544022
Committed: https://crrev.com/e35424b4497354a8995a5db765b3ba8b03314f4a
Cr-Commit-Position: refs/heads/master@{#375547}
Patch Set 1 : #
Total comments: 1
Messages
Total messages: 21 (16 generated)
|