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

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

Issue 2770303002: Add a helper method to truncate SourceStream's length (Closed)
Patch Set: nit Created 3 years, 9 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 | « content/browser/download/download_file_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index 507ace3f58836cc192837a19cf459b4915197981..04d6f71e97766adb0ad783dc4e4e7b5c86888f6f 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -1980,7 +1980,6 @@ void DownloadItemImpl::ResumeInterruptedDownload(
std::vector<DownloadItem::ReceivedSlice> slices_to_download
= FindSlicesToDownload(received_slices_);
download_params->set_offset(slices_to_download[0].offset);
- download_params->set_length(slices_to_download[0].received_bytes);
} else {
download_params->set_offset(GetReceivedBytes());
}
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698