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 748860c39a7365fce7df30723b42ac570c8abfff..0ed5deef9600283134e580b7b67544abb9726ccc 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: |
+ // 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; |