diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index 825fa42d493a..54c0ce0ac810 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -932,8 +932,13 @@ v8::Local App::GetAppMemoryInfo(v8::Isolate* isolate) { int64_t pid = processEntry->pid(); auto process = base::Process::OpenWithExtraPrivileges(pid); +#if defined(OS_MACOSX) + std::unique_ptr metrics( + base::ProcessMetrics::CreateProcessMetrics(process.Handle(), nullptr)); +#else std::unique_ptr metrics( base::ProcessMetrics::CreateProcessMetrics(process.Handle())); +#endif mate::Dictionary pidDict = mate::Dictionary::CreateEmpty(isolate); mate::Dictionary memoryDict = mate::Dictionary::CreateEmpty(isolate);