Fixing mac build

This commit is contained in:
Hari Krishna Reddy Juturu 2017-04-27 08:52:37 -07:00
parent d77c1319f4
commit 3d12440a4a

View file

@ -932,8 +932,13 @@ v8::Local<v8::Value> App::GetAppMemoryInfo(v8::Isolate* isolate) {
int64_t pid = processEntry->pid();
auto process = base::Process::OpenWithExtraPrivileges(pid);
#if defined(OS_MACOSX)
std::unique_ptr<base::ProcessMetrics> metrics(
base::ProcessMetrics::CreateProcessMetrics(process.Handle(), nullptr));
#else
std::unique_ptr<base::ProcessMetrics> metrics(
base::ProcessMetrics::CreateProcessMetrics(process.Handle()));
#endif
mate::Dictionary pidDict = mate::Dictionary::CreateEmpty(isolate);
mate::Dictionary memoryDict = mate::Dictionary::CreateEmpty(isolate);