Stop using ServiceWorkerStorage::IsDisabled() from ServiceWorkerRegistry
ServiceWorkerStorage will be encapsulated in a mojo interface and will be moved outside content/. This means that it can't expose any public method which returns a value synchronously. IsDisable() returns a boolean value synchronously so we need to hide it. ServiceWorkerRegistry needs to know if ServiceWorkerStorage is disabled without IsDisabled(). This CL introduces a new field that manages the state. It is updated when a storage operation is failed. This isn't exactly the same, but should have almost the same effect. Bug: 1055677 Change-Id: I1aab48eb4bf624c3d4c077d8e13472b188f8607d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079715 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#745374}
Showing
Please register or sign in to comment