Index: Source/modules/battery/BatteryDispatcher.cpp |
diff --git a/Source/modules/battery/BatteryDispatcher.cpp b/Source/modules/battery/BatteryDispatcher.cpp |
index 010413386cf17c1fc339e1d5e2915b9072f7b9b6..88a6dba5eb802bb61b55260209a0a5a3acd32fbd 100644 |
--- a/Source/modules/battery/BatteryDispatcher.cpp |
+++ b/Source/modules/battery/BatteryDispatcher.cpp |
@@ -85,12 +85,12 @@ void BatteryDispatcher::didChangeBatteryStatus(const AtomicString& eventType) |
void BatteryDispatcher::startListening() |
{ |
- notImplemented(); |
+ blink::Platform::current()->setBatteryStatusListener(this); |
} |
void BatteryDispatcher::stopListening() |
{ |
- notImplemented(); |
+ blink::Platform::current()->setBatteryStatusListener(0); |
} |
} |