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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 2825051: Add support for a directory file chooser command, which creates a file list b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 57114)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -1370,7 +1370,10 @@
void RenderViewHost::OnMsgRunFileChooser(
const ViewHostMsg_RunFileChooser_Params& params) {
- delegate_->RunFileChooser(params);
+ RenderViewHostDelegate::FileSelect* file_select_delegate =
+ delegate()->GetFileSelectDelegate();
+ if (file_select_delegate)
+ file_select_delegate->RunFileChooser(params);
}
void RenderViewHost::OnMsgRunJavaScriptMessage(
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698