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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10414085: Modified the pepper file chooser API to support filtering files by extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 | « content/public/common/file_chooser_params.h ('k') | ppapi/api/dev/ppb_file_chooser_dev.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index e26b07aa067c142dc375594db1b5e759db8e51b9..1b4a94303e898a0c875704172c5f48a3cfc05a99 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1910,9 +1910,9 @@ bool RenderViewImpl::runFileChooser(
ipc_params.title = params.title;
ipc_params.default_file_name =
webkit_glue::WebStringToFilePath(params.initialValue);
- ipc_params.accept_types.reserve(params.acceptMIMETypes.size());
- for (size_t i = 0; i < params.acceptMIMETypes.size(); ++i)
- ipc_params.accept_types.push_back(params.acceptMIMETypes[i]);
+ ipc_params.accept_types.reserve(params.acceptTypes.size());
+ for (size_t i = 0; i < params.acceptTypes.size(); ++i)
+ ipc_params.accept_types.push_back(params.acceptTypes[i]);
return ScheduleFileChooser(ipc_params, chooser_completion);
}
« no previous file with comments | « content/public/common/file_chooser_params.h ('k') | ppapi/api/dev/ppb_file_chooser_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698