Index: Source/modules/filesystem/DataTransferItemFileSystem.cpp |
diff --git a/Source/modules/filesystem/DataTransferItemFileSystem.cpp b/Source/modules/filesystem/DataTransferItemFileSystem.cpp |
index ab61d0365b3c8719c94252150d1cd01851f2ee26..4aadb40dabbcb2d33065ae010566a064ac01564e 100644 |
--- a/Source/modules/filesystem/DataTransferItemFileSystem.cpp |
+++ b/Source/modules/filesystem/DataTransferItemFileSystem.cpp |
@@ -48,22 +48,22 @@ |
namespace WebCore { |
// static |
-PassRefPtrWillBeRawPtr<Entry> DataTransferItemFileSystem::webkitGetAsEntry(ExecutionContext* executionContext, DataTransferItem& item) |
+Entry* DataTransferItemFileSystem::webkitGetAsEntry(ExecutionContext* executionContext, DataTransferItem& item) |
{ |
if (!item.dataObjectItem()->isFilename()) |
- return nullptr; |
+ return 0; |
// For dragged files getAsFile must be pretty lightweight. |
Blob* file = item.getAsFile().get(); |
// The clipboard may not be in a readable state. |
if (!file) |
- return nullptr; |
+ return 0; |
ASSERT(file->isFile()); |
DOMFileSystem* domFileSystem = DraggedIsolatedFileSystem::getDOMFileSystem(item.clipboard()->dataObject().get(), executionContext); |
if (!domFileSystem) { |
// IsolatedFileSystem may not be enabled. |
- return nullptr; |
+ return 0; |
} |
// The dropped entries are mapped as top-level entries in the isolated filesystem. |
@@ -72,7 +72,7 @@ PassRefPtrWillBeRawPtr<Entry> DataTransferItemFileSystem::webkitGetAsEntry(Execu |
// FIXME: This involves synchronous file operation. Consider passing file type data when we dispatch drag event. |
FileMetadata metadata; |
if (!getFileMetadata(toFile(file)->path(), metadata)) |
- return nullptr; |
+ return 0; |
if (metadata.type == FileMetadata::TypeDirectory) |
return DirectoryEntry::create(domFileSystem, virtualPath); |