Make webkitRelativePath interoperable
https://chromium-review.googlesource.com/c/1325579
This commit is contained in:
parent
d0621db8fd
commit
2cbf3080d0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue