Chromium Code Reviews| 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; |