Index: chrome/browser/chromeos/drive/drive_download_handler.cc |
diff --git a/chrome/browser/chromeos/drive/drive_download_handler.cc b/chrome/browser/chromeos/drive/drive_download_handler.cc |
index 34d528670385575af0d49fc242804ce1ebd4c34d..f8a0a7b070a89fd039e8078078f8ae06e2e101da 100644 |
--- a/chrome/browser/chromeos/drive/drive_download_handler.cc |
+++ b/chrome/browser/chromeos/drive/drive_download_handler.cc |
@@ -143,12 +143,12 @@ void DriveDownloadHandler::SetDownloadParams(const FilePath& drive_path, |
} |
} |
-FilePath DriveDownloadHandler::GetDrivePath(const DownloadItem* download) { |
+FilePath DriveDownloadHandler::GetTargetPath(const DownloadItem* download) { |
const DriveUserData* data = GetDriveUserData(download); |
// If data is NULL, we've somehow lost the drive path selected by the file |
// picker. |
DCHECK(data); |
- return data ? util::ExtractDrivePath(data->file_path()) : FilePath(); |
+ return data ? data->file_path() : FilePath(); |
} |
bool DriveDownloadHandler::IsDriveDownload(const DownloadItem* download) { |
@@ -231,7 +231,7 @@ void DriveDownloadHandler::OnCreateDirectory( |
void DriveDownloadHandler::UploadDownloadItem(DownloadItem* download) { |
DCHECK(download->IsComplete()); |
file_write_helper_->PrepareWritableFileAndRun( |
- GetDrivePath(download), |
+ util::ExtractDrivePath(GetTargetPath(download)), |
base::Bind(&MoveDownloadedFile, download->GetTargetFilePath())); |
} |