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

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: Address comments 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
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..774bb2b2ea3e8fcdd5934ea118b7980fa0ea8731 100644
--- a/chrome/browser/chromeos/drive/download_handler.cc
+++ b/chrome/browser/chromeos/drive/download_handler.cc
@@ -245,10 +245,15 @@ void DownloadHandler::OnDownloadUpdated(
break;
case DownloadItem::CANCELLED:
- case DownloadItem::INTERRUPTED:
download->SetUserData(&kDrivePathKey, NULL);
break;
+ case DownloadItem::INTERRUPTED:
+ // 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;
+
default:
NOTREACHED();
}
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698