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..986fa20d88912eb2a55664ed1fff97670f5ce011 100644 |
--- a/chrome/browser/chromeos/drive/download_handler.cc |
+++ b/chrome/browser/chromeos/drive/download_handler.cc |
@@ -296,7 +296,7 @@ void DownloadHandler::OnCreateDirectory( |
} |
void DownloadHandler::UploadDownloadItem(DownloadItem* download) { |
- DCHECK(download->IsComplete()); |
+ DCHECK_EQ(DownloadItem::COMPLETE, download->GetState()); |
file_write_helper_->PrepareWritableFileAndRun( |
util::ExtractDrivePath(GetTargetPath(download)), |
base::Bind(&MoveDownloadedFile, download->GetTargetFilePath())); |