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

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

Issue 2829853011: Polish the cleaning up url request code for parallel download. (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 | « content/browser/download/download_job.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/parallel_download_job.cc
diff --git a/content/browser/download/parallel_download_job.cc b/content/browser/download/parallel_download_job.cc
index b6e5cae52fd879d226e9f364b090c8c2f2d94f26..fe1fc7c6cce6088737234f42dc3fa81e13997392 100644
--- a/content/browser/download/parallel_download_job.cc
+++ b/content/browser/download/parallel_download_job.cc
@@ -100,6 +100,7 @@ void ParallelDownloadJob::CancelRequestWithOffset(int64_t offset) {
}
auto it = workers_.find(offset);
+ DCHECK(it != workers_.end());
if (it != workers_.end())
qinmin 2017/04/24 21:27:31 nit: you can remove this if statement.
xingliu 2017/04/24 22:07:11 Done.
it->second->Cancel();
}
« no previous file with comments | « content/browser/download/download_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698