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

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

Issue 2809953002: Make the download's response headers available in the DownloadItem (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
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 6469a5c20eb7832dd4462e4d57bfe1809616ca12..bffd3386d84fb18a85eae407662272b1eaff14c2 100644
--- a/content/browser/download/download_request_core.cc
+++ b/content/browser/download/download_request_core.cc
@@ -234,6 +234,7 @@ DownloadRequestCore::CreateDownloadCreateInfo(DownloadInterruptReason result) {
create_info->result = result;
create_info->download_id = download_id_;
create_info->transient = transient_;
+ create_info->response_code = request()->response_headers()->response_code();
create_info->offset = create_info->save_info->offset;
return create_info;
}

Powered by Google App Engine
This is Rietveld 408576698