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

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

Issue 235373005: Handle JS-created files in <input type="file">. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 5 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/DOMFileSystemSync.cpp
diff --git a/Source/modules/filesystem/DOMFileSystemSync.cpp b/Source/modules/filesystem/DOMFileSystemSync.cpp
index 17389f473266f6a025d4164a36d59958aab62bd9..d9633f3c99f29245e1fe9de2cd314e3735978c8d 100644
--- a/Source/modules/filesystem/DOMFileSystemSync.cpp
+++ b/Source/modules/filesystem/DOMFileSystemSync.cpp
@@ -139,7 +139,7 @@ public:
// FIXME: We should use the snapshot metadata for all files.
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=17746
if (m_type == FileSystemTypeTemporary || m_type == FileSystemTypePersistent) {
- m_result->m_file = File::createWithName(metadata.platformPath, m_name);
+ m_result->m_file = File::createForFileSystemFile(metadata.platformPath, m_name);
} else if (!metadata.platformPath.isEmpty()) {
// If the platformPath in the returned metadata is given, we create a File object for the path.
m_result->m_file = File::createForFileSystemFile(m_name, metadata).get();

Powered by Google App Engine
This is Rietveld 408576698