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

Unified Diff: Source/core/fileapi/FileList.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/core/fileapi/FileList.cpp
diff --git a/Source/core/fileapi/FileList.cpp b/Source/core/fileapi/FileList.cpp
index 22d612b7a141b8b8b5ead4b3489c346860962260..7348b32a703412cb4c96a03ecd79a309b33c2443 100644
--- a/Source/core/fileapi/FileList.cpp
+++ b/Source/core/fileapi/FileList.cpp
@@ -41,11 +41,13 @@ File* FileList::item(unsigned index) const
return m_files[index].get();
}
-Vector<String> FileList::paths() const
+Vector<String> FileList::pathsForUserVisibleFiles() const
{
Vector<String> paths;
- for (unsigned i = 0; i < m_files.size(); ++i)
- paths.append(m_files[i]->path());
+ for (unsigned i = 0; i < m_files.size(); ++i) {
+ if (m_files[i]->userVisibility() == File::IsUserVisible)
+ paths.append(m_files[i]->path());
+ }
return paths;
}

Powered by Google App Engine
This is Rietveld 408576698