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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 637873006: Add a flag to show if the FileChooserCompletion needs local paths or not. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | public/web/WebFileChooserParams.h » ('j') | public/web/WebFileChooserParams.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 6017435c6e38b4754c6e11d72c9ce4e091c77742..b1b316f8941059f5e9036c2643c9d0ebb65b4ac9 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -614,6 +614,7 @@ void ChromeClientImpl::runOpenPanel(LocalFrame* frame, PassRefPtr<FileChooser> f
if (params.selectedFiles.size() > 0)
params.initialValue = params.selectedFiles[0];
params.useMediaCapture = fileChooser->settings().useMediaCapture;
+ params.needLocalPath = !fileChooser->settings().allowsDirectoryUpload;
tkent 2014/10/15 08:58:12 I don't understand why directory-upload doesn't ne
hirono 2014/10/15 09:26:51 Yes, this was wrong. When uploading directory, we
WebFileChooserCompletionImpl* chooserCompletion =
new WebFileChooserCompletionImpl(fileChooser);
« no previous file with comments | « no previous file | public/web/WebFileChooserParams.h » ('j') | public/web/WebFileChooserParams.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698