Index: base/system_monitor.h |
diff --git a/base/system_monitor.h b/base/system_monitor.h |
index 9fcac9c88f4939c65b7bd0315b45f8028ee2c846..7eee09ddf29a2d300d3da12a7bdc0fd44953cb06 100644 |
--- a/base/system_monitor.h |
+++ b/base/system_monitor.h |
@@ -5,8 +5,7 @@ |
#ifndef BASE_SYSTEM_MONITOR_H_ |
#define BASE_SYSTEM_MONITOR_H_ |
-#include "base/observer_list_threadsafe.h" |
-#include "base/singleton.h" |
+#include "build/build_config.h" |
// Windows HiRes timers drain the battery faster so we need to know the battery |
// status. This isn't true for other platforms. |
@@ -16,6 +15,12 @@ |
#undef ENABLE_BATTERY_MONITORING |
#endif // !OS_WIN |
+#include "base/observer_list_threadsafe.h" |
+#include "base/singleton.h" |
+#if defined(ENABLE_BATTERY_MONITORING) |
+#include "base/timer.h" |
+#endif // defined(ENABLE_BATTERY_MONITORING) |
+ |
namespace base { |
// Class for monitoring various system-related subsystems |