Index: chrome/browser/chromeos/drive/file_system/download_operation.cc |
diff --git a/chrome/browser/chromeos/drive/file_system/download_operation.cc b/chrome/browser/chromeos/drive/file_system/download_operation.cc |
index 9847a3092865d7f4e469cbd0cb1615a7aea8983d..fd7c072ea644be7f466c572e4db71b0a5fe8e78a 100644 |
--- a/chrome/browser/chromeos/drive/file_system/download_operation.cc |
+++ b/chrome/browser/chromeos/drive/file_system/download_operation.cc |
@@ -183,7 +183,9 @@ FileError CheckPreConditionForEnsureFileDownloadedByLocalId( |
base::FilePath* cache_file_path, |
base::FilePath* temp_download_file_path, |
ResourceEntry* entry) { |
- *drive_file_path = params.metadata->GetFilePath(local_id); |
+ FileError error = params.metadata->GetFilePath(local_id, drive_file_path); |
+ if (error != FILE_ERROR_OK) |
+ return error; |
return CheckPreConditionForEnsureFileDownloaded( |
params.metadata, params.cache, params.temporary_file_directory, local_id, |
entry, cache_file_path, temp_download_file_path); |