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

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: Created 7 years, 7 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 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()));

Powered by Google App Engine
This is Rietveld 408576698