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

Unified Diff: chrome/browser/chromeos/drive/download_handler.cc

Issue 14640020: [Resumption 9/11] Handle filename determination for resumed downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GCC build Created 7 years, 7 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: chrome/browser/chromeos/drive/download_handler.cc
diff --git a/chrome/browser/chromeos/drive/download_handler.cc b/chrome/browser/chromeos/drive/download_handler.cc
index d97b69c3239c5147c4acc6b0f519be12488b62b3..386377c72da57abf4184e9e78c096296fb99bd8e 100644
--- a/chrome/browser/chromeos/drive/download_handler.cc
+++ b/chrome/browser/chromeos/drive/download_handler.cc
@@ -244,8 +244,13 @@ void DownloadHandler::OnDownloadUpdated(
data->set_complete();
break;
- case DownloadItem::CANCELLED:
case DownloadItem::INTERRUPTED:
hashimoto 2013/06/03 06:31:03 nit: Please make this the same order as written in
asanka 2013/06/03 18:35:31 Done.
+ // Interrupted downloads can be resumed. Keep the Drive user data around
+ // so that it can be used when the download resumes. The download is truly
+ // done when it's complete, is cancelled or is removed.
+ break;
+
+ case DownloadItem::CANCELLED:
download->SetUserData(&kDrivePathKey, NULL);
break;

Powered by Google App Engine
This is Rietveld 408576698