summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authortimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 01:08:26 +0000
committertimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 01:08:26 +0000
commit563c80c649e5696a42e1ec32d5dbff90e5404da9 (patch)
treeabcb3f048b949b56419ad8e8eca02733eec1dd5d /content
parent000cd2565df6bfe25e1070536974c11eccbdc954 (diff)
downloadchromium_src-563c80c649e5696a42e1ec32d5dbff90e5404da9.zip
chromium_src-563c80c649e5696a42e1ec32d5dbff90e5404da9.tar.gz
chromium_src-563c80c649e5696a42e1ec32d5dbff90e5404da9.tar.bz2
Fix |started_| variable for Device Motion Android data fetcher.
Ensure proper stopping of sensors upon fetcher destruction. BUG= Review URL: https://chromiumcodereview.appspot.com/22336011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/device_orientation/data_fetcher_shared_memory_android.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/device_orientation/data_fetcher_shared_memory_android.cc b/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
index b0515576..8f6e202 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
+++ b/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
@@ -27,9 +27,9 @@ bool DataFetcherSharedMemory::StartFetchingDeviceMotionData(
DeviceMotionHardwareBuffer* buffer) {
DCHECK(buffer);
device_motion_buffer_ = buffer;
- return DataFetcherImplAndroid::GetInstance()->
+ started_ = DataFetcherImplAndroid::GetInstance()->
StartFetchingDeviceMotionData(buffer);
- started_ = true;
+ return started_;
}
void DataFetcherSharedMemory::StopFetchingDeviceMotionData() {