| Index: content/browser/device_orientation/device_motion_provider.cc
|
| diff --git a/content/browser/device_orientation/device_motion_provider.cc b/content/browser/device_orientation/device_motion_provider.cc
|
| index 218ee58d8ac30a9e3299f12e62acc49a0e9153fa..6db5d06ca51cb324cf8ecfea3ef58a178efd35f6 100644
|
| --- a/content/browser/device_orientation/device_motion_provider.cc
|
| +++ b/content/browser/device_orientation/device_motion_provider.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/logging.h"
|
| +#include "content/browser/device_orientation/data_fetcher_shared_memory.h"
|
| #include "content/browser/device_orientation/device_motion_provider.h"
|
| #include "content/common/device_motion_hardware_buffer.h"
|
|
|
| @@ -18,6 +19,7 @@ DeviceMotionProvider::DeviceMotionProvider()
|
| }
|
|
|
| DeviceMotionProvider::~DeviceMotionProvider() {
|
| + StopFetchingDeviceMotionData();
|
| }
|
|
|
| base::SharedMemoryHandle DeviceMotionProvider::GetSharedMemoryHandleForProcess(
|
| @@ -30,13 +32,13 @@ base::SharedMemoryHandle DeviceMotionProvider::GetSharedMemoryHandleForProcess(
|
| void DeviceMotionProvider::StartFetchingDeviceMotionData() {
|
| if (is_started_)
|
| return;
|
| - // FIXME: call data_fetcher_->StartFetchingDeviceMotionData(
|
| - // SharedMemoryAsHardwareBuffer());
|
| + DataFetcherSharedMemory::instance()->StartFetchingDeviceMotionData(
|
| + SharedMemoryAsHardwareBuffer());
|
| is_started_ = true;
|
| }
|
|
|
| void DeviceMotionProvider::StopFetchingDeviceMotionData() {
|
| - // FIXME: call data_fetcher_->StopFetchingDeviceMotionData();
|
| + DataFetcherSharedMemory::instance()->StopFetchingDeviceMotionData();
|
| is_started_ = false;
|
| }
|
|
|
|
|