| Index: chrome/browser/chromeos/drive/file_system/copy_operation.cc
|
| diff --git a/chrome/browser/chromeos/drive/file_system/copy_operation.cc b/chrome/browser/chromeos/drive/file_system/copy_operation.cc
|
| index 3479c1f9271dcc7c52528b9ecd6c93e5c1bee903..fd4bc66d310460d3d0744c72af2652f22b2b0339 100644
|
| --- a/chrome/browser/chromeos/drive/file_system/copy_operation.cc
|
| +++ b/chrome/browser/chromeos/drive/file_system/copy_operation.cc
|
| @@ -118,7 +118,9 @@ FileError TryToCopyLocally(internal::ResourceMetadata* metadata,
|
| // If the cache file is not present and the entry exists on the server,
|
| // server side copy should be used.
|
| FileCacheEntry cache_entry;
|
| - cache->GetCacheEntry(params->src_entry.local_id(), &cache_entry);
|
| + error = cache->GetCacheEntry(params->src_entry.local_id(), &cache_entry);
|
| + if (error != FILE_ERROR_OK && error != FILE_ERROR_NOT_FOUND)
|
| + return error;
|
| if (!cache_entry.is_present() && !params->src_entry.resource_id().empty()) {
|
| *should_copy_on_server = true;
|
| return FILE_ERROR_OK;
|
|
|