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

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

Issue 2752603002: Propagate server response error and interrupt the download. (Closed)
Patch Set: 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
Index: content/browser/download/download_job.cc
diff --git a/content/browser/download/download_job.cc b/content/browser/download/download_job.cc
index 4da7eb429ae6eca4a6b880e8924dbe5f79e7a054..1e73c8683cb3e9879d344e6ed79c4ca8ca7b9a87 100644
--- a/content/browser/download/download_job.cc
+++ b/content/browser/download/download_job.cc
@@ -25,4 +25,8 @@ void DownloadJob::StartDownload() const {
download_item_->StartDownload();
}
+void DownloadJob::Interrupt(DownloadInterruptReason reason) {
+ download_item_->InterruptAndDiscardPartialState(reason);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698