Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5779)

Unified Diff: chrome/browser/chromeos/drive/download_handler.cc

Issue 16018005: Use DownloadItem::GetState() in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stopping complete_animation_ when download is cancelled Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));

Powered by Google App Engine
This is Rietveld 408576698