DescriptionImprove code with early returns.
Improve SpdyHttpUtils::GetUrlFromHeaderBlock() implementation with early
returns. Get rid of a number of temporary variables that were declared too far
from where they were first used.
Also remove SPDY2-specific code, as SPDY2 is no longer supported in Chromium.
Acknowledgements to Daniel Bratell for suggesting to use append instead of
inline operator+ that would create unnecessary temporary strings, see
https://crrev.com/965773002.
BUG=
Committed: https://crrev.com/f5a07dab231907ba19ada492ac852b3a7037190c
Cr-Commit-Position: refs/heads/master@{#319784}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|