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

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

Issue 256103007: Remove modules/filesystem/DraggedIsolatedFileSystem.h dependency from core/DEPS. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/core/page/DragData.cpp ('k') | Source/modules/filesystem/DraggedIsolatedFileSystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DataTransferItemFileSystem.cpp
diff --git a/Source/modules/filesystem/DataTransferItemFileSystem.cpp b/Source/modules/filesystem/DataTransferItemFileSystem.cpp
index 50fc03306d6dbb9ab8330235a6010edf92395215..ab61d0365b3c8719c94252150d1cd01851f2ee26 100644
--- a/Source/modules/filesystem/DataTransferItemFileSystem.cpp
+++ b/Source/modules/filesystem/DataTransferItemFileSystem.cpp
@@ -60,15 +60,12 @@ PassRefPtrWillBeRawPtr<Entry> DataTransferItemFileSystem::webkitGetAsEntry(Execu
return nullptr;
ASSERT(file->isFile());
- DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(item.clipboard()->dataObject().get());
- DOMFileSystem* domFileSystem = filesystem ? filesystem->getDOMFileSystem(executionContext) : 0;
- if (!filesystem) {
+ DOMFileSystem* domFileSystem = DraggedIsolatedFileSystem::getDOMFileSystem(item.clipboard()->dataObject().get(), executionContext);
+ if (!domFileSystem) {
// IsolatedFileSystem may not be enabled.
return nullptr;
}
- ASSERT(domFileSystem);
-
// The dropped entries are mapped as top-level entries in the isolated filesystem.
String virtualPath = DOMFilePath::append("/", toFile(file)->name());
« no previous file with comments | « Source/core/page/DragData.cpp ('k') | Source/modules/filesystem/DraggedIsolatedFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698