Skip to content

Commit

Permalink
fix: expose process.getProcessMemoryInfo to sandbox (#17669)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Apr 4, 2019
1 parent 914939c commit 3a0b72e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atom/renderer/atom_sandboxed_renderer_client.cc
Expand Up @@ -158,6 +158,8 @@ void AtomSandboxedRendererClient::InitializeBindings(
process.SetMethod("hang", AtomBindings::Hang);
process.SetMethod("getHeapStatistics", &AtomBindings::GetHeapStatistics);
process.SetMethod("getSystemMemoryInfo", &AtomBindings::GetSystemMemoryInfo);
process.SetMethod("getProcessMemoryInfo",
&AtomBindings::GetProcessMemoryInfo);
process.SetMethod(
"getCPUUsage",
base::Bind(&AtomBindings::GetCPUUsage, base::Unretained(metrics_.get())));
Expand Down

0 comments on commit 3a0b72e

Please sign in to comment.