Skip to content
Commit 2feb7b68 authored by Xinghui Lu's avatar Xinghui Lu Committed by Chromium LUCI CQ
Browse files

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: default avatarDaniel Rubery <drubery@chromium.org>
Cr-Commit-Position: refs/heads/master@{#880646}
parent 3ac9fb6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment