[OnionSoup] Reduce usages of blink::WebServiceWorkerRegistration
Currently some modules (push_messaging, background_fetch etc.) are calling blink::SWRegistration::WebRegistration() to get a pointer to blink::WebSWRegistration to continue their work there. However, they use that blink::WebSWRegistration just to retrieve the service worker registration id, i.e. what they really want is not blink::WebSWRegistration, but just the registration id. So, this CL removes blink::SWRegistration::WebRegistration() and provides a new function blink::SWRegistration::RegistrationId() for those users instead. This CL is in preparation for https://crrev.com/c/1275300 which plans to merge content::WebSWRegistrationImpl into blink::SWRegistration and remove the public interface blink::WebSWRegistration completely. BUG=789857,879019 Change-Id: Iafb245ec6f978dfaa294f58ee800d80c5ba60fac Reviewed-on: https://chromium-review.googlesource.com/c/1275298 Commit-Queue: Leon Han <leon.han@intel.com> Reviewed-by:Victor Costan <pwnall@chromium.org> Reviewed-by:
Peter Beverloo <peter@chromium.org> Reviewed-by:
Ian Clelland <iclelland@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#599093}
Showing
Please register or sign in to comment