Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: content/browser/download/download_request_core.cc

Issue 2862743002: Add a metric to record http response code for download requests. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/download/download_stats.h » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_request_core.cc
diff --git a/content/browser/download/download_request_core.cc b/content/browser/download/download_request_core.cc
index e5c28d806acd21ae93e7cde58106fa8f6537d7cb..fc7f2e497e3583281fc61a1ee07d121f03f7bf3e 100644
--- a/content/browser/download/download_request_core.cc
+++ b/content/browser/download/download_request_core.cc
@@ -251,6 +251,9 @@ bool DownloadRequestCore::OnResponseStarted(
save_info_.get())
: DOWNLOAD_INTERRUPT_REASON_NONE;
+ RecordDownloadHttpResponseCode(
+ request()->response_headers()->response_code());
+
std::unique_ptr<DownloadCreateInfo> create_info =
CreateDownloadCreateInfo(result);
if (result != DOWNLOAD_INTERRUPT_REASON_NONE) {
« no previous file with comments | « no previous file | content/browser/download/download_stats.h » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698