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 d8c68e6cc221818e369683bc083959ef1462a791..af6c00e2062e156d241aef2b5f13d482fe1ded2c 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; |
|
Randy Smith (Not in Mondays)
2013/05/15 19:00:18
How does this work over a browser restart? I.e. i
asanka
2013/05/23 20:30:37
On a browser restart, drive downloads get deleted
|
| + |
| + case DownloadItem::CANCELLED: |
| download->SetUserData(&kDrivePathKey, NULL); |
| break; |