From c470e758cce6b6fa6cbf9d114bcc242eec6a157b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 5 Feb 2018 16:13:54 +0900 Subject: [PATCH] Remove the AllocateSystemIOPorts call It is no longer needed and it is crashing. --- atom/browser/api/atom_api_power_monitor.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/atom/browser/api/atom_api_power_monitor.cc b/atom/browser/api/atom_api_power_monitor.cc index 48194d0e3a99..88fbb4c97be5 100644 --- a/atom/browser/api/atom_api_power_monitor.cc +++ b/atom/browser/api/atom_api_power_monitor.cc @@ -92,10 +92,6 @@ using atom::api::PowerMonitor; void Initialize(v8::Local exports, v8::Local unused, v8::Local context, void* priv) { -#if defined(OS_MACOSX) - base::PowerMonitorDeviceSource::AllocateSystemIOPorts(); -#endif - v8::Isolate* isolate = context->GetIsolate(); mate::Dictionary dict(isolate, exports); dict.Set("powerMonitor", PowerMonitor::Create(isolate));