diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index 3460e5f005..372b19221d 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -644,7 +644,7 @@ std::string RegisterFileSystem(content::WebContents* web_contents, content::RenderViewHost* render_view_host = web_contents->GetRenderViewHost(); int renderer_id = render_view_host->GetProcess()->GetDeprecatedID(); content::ChildProcessId process_id = render_view_host->GetProcess()->GetID(); - policy->GrantReadFileSystem(renderer_id, file_system.id()); + policy->GrantReadFileSystem(process_id, file_system.id()); policy->GrantWriteFileSystem(renderer_id, file_system.id()); policy->GrantCreateFileForFileSystem(renderer_id, file_system.id()); policy->GrantDeleteFromFileSystem(renderer_id, file_system.id());