| 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 ee46049e2ae3a3890e97185fcd19f99d389c1cd2..8e0bb33f983f31fc204a506edaca173e019a0fab 100644
|
| --- a/chrome/browser/chromeos/drive/download_handler.cc
|
| +++ b/chrome/browser/chromeos/drive/download_handler.cc
|
| @@ -302,7 +302,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()));
|
|
|