From 05c43e4e5d2e0017275d6399818cd8e8254f29a0 Mon Sep 17 00:00:00 2001 From: clavin Date: Tue, 10 Feb 2026 22:56:24 -0800 Subject: [PATCH] fixup! 7508687: use ChildProcessId for file permission APIs --- shell/browser/api/electron_api_web_contents.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());