Index: Source/modules/battery/BatteryDispatcher.cpp |
diff --git a/Source/modules/battery/BatteryDispatcher.cpp b/Source/modules/battery/BatteryDispatcher.cpp |
index 77b7f28a0caafe05739c62da933d2859e9990361..29cef399b8422c94fc84d21e2a263040019f3810 100644 |
--- a/Source/modules/battery/BatteryDispatcher.cpp |
+++ b/Source/modules/battery/BatteryDispatcher.cpp |
@@ -38,12 +38,12 @@ BatteryStatus* BatteryDispatcher::latestData() |
void BatteryDispatcher::startListening() |
{ |
- blink::Platform::current()->setBatteryStatusListener(this); |
+ blink::Platform::current()->startListening(WebPlatformEventBattery, this); |
} |
void BatteryDispatcher::stopListening() |
{ |
- blink::Platform::current()->setBatteryStatusListener(0); |
+ blink::Platform::current()->stopListening(WebPlatformEventBattery); |
m_batteryStatus.clear(); |
} |