Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1829)

Unified Diff: Source/modules/filesystem/DataTransferItemFileSystem.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/filesystem/DataTransferItemFileSystem.cpp
diff --git a/Source/modules/filesystem/DataTransferItemFileSystem.cpp b/Source/modules/filesystem/DataTransferItemFileSystem.cpp
index f4a1e7a87627e2965ff15d5e268a8154e329cc65..c65e0b3de646e4d2605274a6519c4d37da2341ed 100644
--- a/Source/modules/filesystem/DataTransferItemFileSystem.cpp
+++ b/Source/modules/filesystem/DataTransferItemFileSystem.cpp
@@ -48,19 +48,19 @@
namespace WebCore {
// static
-PassRefPtr<Entry> DataTransferItemFileSystem::webkitGetAsEntry(ExecutionContext* executionContext, DataTransferItem* item)
+PassRefPtr<Entry> DataTransferItemFileSystem::webkitGetAsEntry(ExecutionContext* executionContext, DataTransferItem& item)
{
- if (!item->dataObjectItem()->isFilename())
+ if (!item.dataObjectItem()->isFilename())
return 0;
// For dragged files getAsFile must be pretty lightweight.
- Blob* file = item->getAsFile().get();
+ Blob* file = item.getAsFile().get();
// The clipboard may not be in a readable state.
if (!file)
return 0;
ASSERT(file->isFile());
- DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(item->clipboard()->dataObject().get());
+ DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(item.clipboard()->dataObject().get());
DOMFileSystem* domFileSystem = filesystem ? filesystem->getDOMFileSystem(executionContext) : 0;
if (!filesystem) {
// IsolatedFileSystem may not be enabled.

Powered by Google App Engine
This is Rietveld 408576698