service worker: Reduce direct NewResourceId() calls in tests
* Let WriteToDiskCache{A,S}sync() assign resource ID internally * Add WriteToDiskCacheWithIdSync() that works as the same as the previous WriteToDiskCacheSync() NewResourceId() call will become async once we move ServiceWorkerStorage to the storage service. This CL reduces NewResourceId() calls so that we don't have to make all call sites async in the future. Bug: 1046335 Change-Id: I9ad57f8920bd5e157bd4ba8262699f72148b5bac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035637 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#738768}
Showing
Please register or sign in to comment