Index: Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
diff --git a/Source/modules/device_orientation/DeviceMotionDispatcher.cpp b/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
index 0569fd34c503e8f1cbeb674b6e770390e7ea5e9d..21d72f821416c1f0be2b769bb18d585432e8ef6e 100644 |
--- a/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
+++ b/Source/modules/device_orientation/DeviceMotionDispatcher.cpp |
@@ -53,12 +53,12 @@ DeviceMotionDispatcher::~DeviceMotionDispatcher() |
void DeviceMotionDispatcher::startListening() |
{ |
- blink::Platform::current()->setDeviceMotionListener(this); |
+ blink::Platform::current()->startListening(WebPlatformEventDeviceMotion, this); |
} |
void DeviceMotionDispatcher::stopListening() |
{ |
- blink::Platform::current()->setDeviceMotionListener(0); |
+ blink::Platform::current()->stopListening(WebPlatformEventDeviceMotion); |
m_lastDeviceMotionData.clear(); |
} |