Improve 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= Review URL: https://codereview.chromium.org/996483002 Cr-Commit-Position: refs/heads/master@{#319784}
Showing
Please register or sign in to comment