Make webkitRelativePath interoperable

https://chromium-review.googlesource.com/c/1325579
This commit is contained in:
Jeremy Apthorp 2019-01-09 16:36:01 -08:00
parent d0621db8fd
commit 2cbf3080d0

View file

@ -105,7 +105,7 @@ class FileSelectHelper : public base::RefCounted<FileSelectHelper>,
void OnFilesSelected(std::vector<FileChooserFileInfoPtr> file_info) { void OnFilesSelected(std::vector<FileChooserFileInfoPtr> file_info) {
if (listener_) { if (listener_) {
listener_->FileSelected(std::move(file_info), mode_); listener_->FileSelected(std::move(file_info), base::FilePath(), mode_);
listener_.reset(); listener_.reset();
} }
render_frame_host_ = nullptr; render_frame_host_ = nullptr;
@ -265,7 +265,7 @@ void WebDialogHelper::EnumerateDirectory(
blink::mojom::NativeFileInfo::New(path, base::string16()))); blink::mojom::NativeFileInfo::New(path, base::string16())));
} }
listener->FileSelected(std::move(file_info), listener->FileSelected(std::move(file_info), dir,
FileChooserParams::Mode::kUploadFolder); FileChooserParams::Mode::kUploadFolder);
} }