service worker: Allow LazyInitialize on resource reader/writer creation
This CL moves MakeSelfOwneReceiver() for resource reader/writer from ServiceWorkerStorageControlImpl to ServiceWorkerStorage. This move allows us to call LazyInitialize() if the internal storage hasn't been initialized yet. This behavior simplifies service worker storage service recovery steps because it would eliminate a need for force initialization after restart. As a side effect we need to update helper functions in service_worker_storage_unittest.cc Bug: 1133143 Change-Id: I43057adfbbc91d94dd5aedc22c684cb862ab26d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519345Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#824782}
Showing
Please register or sign in to comment