Chromium Code Reviews| Index: chrome/browser/chromeos/gdata/gdata_uploader.cc |
| =================================================================== |
| --- chrome/browser/chromeos/gdata/gdata_uploader.cc (revision 128869) |
| +++ chrome/browser/chromeos/gdata/gdata_uploader.cc (working copy) |
| @@ -43,6 +43,11 @@ |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| DCHECK(upload_file_info); |
| DCHECK_EQ(upload_file_info->upload_id, -1); |
| + DCHECK(!upload_file_info->file_path.empty()); |
| + DCHECK_NE(upload_file_info->file_size, 0); |
| + DCHECK(!upload_file_info->gdata_path.empty()); |
| + DCHECK(!upload_file_info->title.empty()); |
| + DCHECK(!upload_file_info->content_type.empty()); |
|
asanka
2012/03/26 16:50:14
For regular downloads, it is possible that we don'
achuithb
2012/03/26 19:51:39
We do need to handle this, but I pulled this file
|
| upload_file_info->upload_id = next_upload_id_++; |
| // Add upload_file_info to our internal map and take ownership. |