service worker: Refactoring in registerServiceWorker().
The function had a public helper function that didn't add much value. We were duplicating checks like !provider_ and the flow of data was more complicated. It's hard to read the diff so the changes are: * Removed RegisterServiceWorkerImpl. * Removed duplicate if (!provider_) check. * Removed |raw_script_url|, it's unneeded indirection. * Unified the preparation of |script_url|, |pattern_url|, and |update_via_cache| to just before they are used. Change-Id: Icef9dd5b26f4009fbf69d62ad918066be2c0733c Reviewed-on: https://chromium-review.googlesource.com/1098425 Commit-Queue: Matt Falkenhagen <falken@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#566726}
Showing
Please register or sign in to comment