Index: chrome/browser/chromeos/drive/file_system/move_operation.cc |
diff --git a/chrome/browser/chromeos/drive/file_system/move_operation.cc b/chrome/browser/chromeos/drive/file_system/move_operation.cc |
index c7e490a23e91e465de2c9596c451f5ef94558a1b..fea40b6af4287d383ea811a2a3ed4a86b5586c85 100644 |
--- a/chrome/browser/chromeos/drive/file_system/move_operation.cc |
+++ b/chrome/browser/chromeos/drive/file_system/move_operation.cc |
@@ -212,6 +212,13 @@ void MoveOperation::RemoveFromDirectory( |
const FileOperationCallback& callback) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ // Moving files out from "drive/other" special folder for storing orphan files |
+ // has no meaning in the server. Just skip the step. |
+ if (util::IsSpecialResourceId(directory_resource_id)) { |
+ callback.Run(FILE_ERROR_OK); |
+ return; |
+ } |
+ |
scheduler_->RemoveResourceFromDirectory( |
directory_resource_id, |
resource_id, |