summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r--chrome/renderer/render_view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 961c665..4094ce6 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2614,6 +2614,11 @@ void RenderView::OnInstallMissingPlugin() {
void RenderView::OnFileChooserResponse(
const std::vector<std::wstring>& file_names) {
+ // This could happen if we navigated to a different page before the user
+ // closed the chooser.
+ if (!file_chooser_.get())
+ return;
+
file_chooser_->OnFileChoose(file_names);
file_chooser_.reset();
}