DescriptionServiceWorker: Decompose SWRegistration::SetVersionInternal for readability
Originally SetVersionInternal() was quite simple function, but that has been
puzzuled as the codebase has evolved.
This CL decomposes the function for readability and simplifies lifetime
management for a version to be set, that is, passes a refcounted version
as an argument instead of making temporary protect object.
BUG=n/a
TEST=n/a
Committed: https://crrev.com/964b57ac5be1001f57dfb03262454324ef8b173a
Cr-Commit-Position: refs/heads/master@{#326753}
Patch Set 1 #Patch Set 2 : Remove .get() #Patch Set 3 : make the argument const-ref #Messages
Total messages: 11 (2 generated)
|