summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_view_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/render_view_host.cc')
-rw-r--r--content/browser/renderer_host/render_view_host.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index 5298315..81709ef 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -556,12 +556,13 @@ void RenderViewHost::SetInitialFocus(bool reverse) {
}
void RenderViewHost::FilesSelectedInChooser(
- const std::vector<FilePath>& files) {
+ const std::vector<FilePath>& files,
+ int permissions) {
// Grant the security access requested to the given files.
for (std::vector<FilePath>::const_iterator file = files.begin();
file != files.end(); ++file) {
- ChildProcessSecurityPolicy::GetInstance()->GrantReadFile(
- process()->id(), *file);
+ ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile(
+ process()->id(), *file, permissions);
}
Send(new ViewMsg_RunFileChooserResponse(routing_id(), files));
}