Log the actual HTTP response code when net error is HTTP failure
Previously, for all metrics logged in RecordHttpResponseOrErrorCode, HTTP failures are all logged as HTTP_RESPONSE_CODE_FAILURE. We should log the actual HTTP response code in this case. Histograms affected: SafeBrowsing.RT.Network.Result SafeBrowsing.V4Update.Network.Result SafeBrowsing.V4GetHash.Network.Result SBClientPhishing.ClientModelDownloadResponseOrErrorCode Bug: 1206514 Change-Id: I1dce26631a54229edb76bcf87cd9f67ca6dd5fd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2879167 Commit-Queue: Xinghui Lu <xinghuilu@chromium.org> Reviewed-by:Daniel Rubery <drubery@chromium.org> Cr-Commit-Position: refs/heads/master@{#880646}
Loading
Please register or sign in to comment