Index: base/power_monitor/power_monitor_device_source.h |
diff --git a/base/power_monitor/power_monitor_device_source.h b/base/power_monitor/power_monitor_device_source.h |
index 29f17c2a7d96b95903f43d8be78da5554068bd1b..977bd267e511c43cf92906e2b51f38c51392af6d 100644 |
--- a/base/power_monitor/power_monitor_device_source.h |
+++ b/base/power_monitor/power_monitor_device_source.h |
@@ -12,15 +12,7 @@ |
#include "base/power_monitor/power_monitor_source.h" |
#include "base/power_monitor/power_observer.h" |
-#if defined(OS_WIN) |
-#include <windows.h> |
- |
-// Windows HiRes timers drain the battery faster so we need to know the battery |
-// status. This isn't true for other platforms. |
-#define ENABLE_BATTERY_MONITORING 1 |
-#else |
#undef ENABLE_BATTERY_MONITORING |
-#endif // !OS_WIN |
#if defined(ENABLE_BATTERY_MONITORING) |
#include "base/timer/timer.h" |
@@ -62,25 +54,6 @@ class BASE_EXPORT PowerMonitorDeviceSource : public PowerMonitorSource { |
#endif |
private: |
-#if defined(OS_WIN) |
- // Represents a message-only window for power message handling on Windows. |
- // Only allow PowerMonitor to create it. |
- class PowerMessageWindow { |
- public: |
- PowerMessageWindow(); |
- ~PowerMessageWindow(); |
- |
- private: |
- static LRESULT CALLBACK WndProcThunk(HWND hwnd, |
- UINT message, |
- WPARAM wparam, |
- LPARAM lparam); |
- // Instance of the module containing the window procedure. |
- HMODULE instance_; |
- // A hidden message-only window. |
- HWND message_hwnd_; |
- }; |
-#endif // OS_WIN |
#if defined(OS_MACOSX) |
void PlatformInit(); |
@@ -105,10 +78,6 @@ class BASE_EXPORT PowerMonitorDeviceSource : public PowerMonitorSource { |
base::OneShotTimer<PowerMonitorDeviceSource> delayed_battery_check_; |
#endif |
-#if defined(OS_WIN) |
- PowerMessageWindow power_message_window_; |
-#endif |
- |
DISALLOW_COPY_AND_ASSIGN(PowerMonitorDeviceSource); |
}; |