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

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

Issue 11801022: Allow dragging a download only after the download is complete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk at 175906 Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_download_observer.cc
diff --git a/chrome/browser/chromeos/drive/drive_download_observer.cc b/chrome/browser/chromeos/drive/drive_download_observer.cc
index 90d7b4741ddfae98d4f9353d4b805f69429faf99..2eeb63e8922e52bff318477c271affabfa50b986 100644
--- a/chrome/browser/chromeos/drive/drive_download_observer.cc
+++ b/chrome/browser/chromeos/drive/drive_download_observer.cc
@@ -251,9 +251,10 @@ void DriveDownloadObserver::OnDownloadUpdated(
}
void DriveDownloadObserver::UploadDownloadItem(DownloadItem* download) {
+ DCHECK(download->IsComplete());
file_write_helper_->PrepareWritableFileAndRun(
GetDrivePath(download),
- base::Bind(&MoveDownloadedFile, download->GetFullPath()));
+ base::Bind(&MoveDownloadedFile, download->GetTargetFilePath()));
}
} // namespace drive
« no previous file with comments | « no previous file | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698