Commit 0933b847 authored by Takumi Fujimoto's avatar Takumi Fujimoto Committed by Commit Bot

Notify SelectFileDialog when MediaRouterFileDialog is destroyed

This prevents SelectFileDialog::Listener methods implemented by
MediaRouterFileDialog from getting called after it is destroyed.

Bug: 907273
Change-Id: I5ec03d832f1062ff1c2259f765f397b7af4c90a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898404Reviewed-by: default avatarBrandon Tolsch <btolsch@chromium.org>
Commit-Queue: Takumi Fujimoto <takumif@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712732}
parent 0cd17efd
...@@ -69,9 +69,12 @@ ui::SelectFileDialog::FileTypeInfo GetAudioVideoFileTypeInfo() { ...@@ -69,9 +69,12 @@ ui::SelectFileDialog::FileTypeInfo GetAudioVideoFileTypeInfo() {
} // namespace } // namespace
// FileSystemDelegate default implementations
MediaRouterFileDialog::FileSystemDelegate::FileSystemDelegate() = default; MediaRouterFileDialog::FileSystemDelegate::FileSystemDelegate() = default;
MediaRouterFileDialog::FileSystemDelegate::~FileSystemDelegate() = default;
MediaRouterFileDialog::FileSystemDelegate::~FileSystemDelegate() {
if (select_file_dialog_)
select_file_dialog_->ListenerDestroyed();
}
bool MediaRouterFileDialog::FileSystemDelegate::FileExists( bool MediaRouterFileDialog::FileSystemDelegate::FileExists(
const base::FilePath& file_path) const { const base::FilePath& file_path) const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment