Index: base/system_monitor/system_monitor.h |
diff --git a/base/system_monitor/system_monitor.h b/base/system_monitor/system_monitor.h |
index e2de14cb56104776e6afdcca1fed727556d56254..78ab50a38cda9417501501803a977490d11b1ab1 100644 |
--- a/base/system_monitor/system_monitor.h |
+++ b/base/system_monitor/system_monitor.h |
@@ -50,6 +50,14 @@ class BASE_API SystemMonitor { |
// Get the application-wide SystemMonitor (if not present, returns NULL). |
static SystemMonitor* Get(); |
+#if defined(OS_MACOSX) |
+ // Allocate system resources needed by the SystemMonitor class. |
+ // |
+ // This function must be called before instantiating an instance of the class |
+ // and before the Sandbox is initialized. |
+ static void AllocateSystemIOPorts(); |
+#endif |
+ |
// |
// Power-related APIs |
// |
@@ -130,11 +138,6 @@ class BASE_API SystemMonitor { |
base::OneShotTimer<SystemMonitor> delayed_battery_check_; |
#endif |
-#if defined(OS_MACOSX) |
- IONotificationPortRef notification_port_ref_; |
- io_object_t notifier_object_; |
-#endif |
- |
DISALLOW_COPY_AND_ASSIGN(SystemMonitor); |
}; |