Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / drive / sync / entry_revert_performer.cc
index ae6bf9f..853039e 100644 (file)
@@ -110,6 +110,9 @@ void EntryRevertPerformer::RevertEntryAfterPrepare(
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
   DCHECK(!callback.is_null());
 
+  if (error == FILE_ERROR_OK && entry->resource_id().empty())
+    error = FILE_ERROR_INVALID_OPERATION;
+
   if (error != FILE_ERROR_OK) {
     callback.Run(error);
     return;