Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: content/browser/device_orientation/data_fetcher_shared_memory_android.cc

Issue 137853006: Android: rename DataFetcherImplAndroid -> SensorManagerAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/device_orientation/data_fetcher_shared_memory_android.cc
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 194c0c21b8d195c673f71fb8e21bca9da4006fe2..8a4f52dd11bacb4a71b7167cfeef5c8f16ade8b7 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
+++ b/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
@@ -5,7 +5,7 @@
#include "content/browser/device_orientation/data_fetcher_shared_memory.h"
#include "base/logging.h"
-#include "content/browser/device_orientation/data_fetcher_impl_android.h"
+#include "content/browser/device_orientation/sensor_manager_android.h"
#include "content/common/device_orientation/device_motion_hardware_buffer.h"
#include "content/common/device_orientation/device_orientation_hardware_buffer.h"
@@ -22,11 +22,11 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
switch (consumer_type) {
case CONSUMER_TYPE_MOTION:
- return DataFetcherImplAndroid::GetInstance()->
+ return SensorManagerAndroid::GetInstance()->
StartFetchingDeviceMotionData(
static_cast<DeviceMotionHardwareBuffer*>(buffer));
case CONSUMER_TYPE_ORIENTATION:
- return DataFetcherImplAndroid::GetInstance()->
+ return SensorManagerAndroid::GetInstance()->
StartFetchingDeviceOrientationData(
static_cast<DeviceOrientationHardwareBuffer*>(buffer));
default:
@@ -38,11 +38,10 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) {
switch (consumer_type) {
case CONSUMER_TYPE_MOTION:
- DataFetcherImplAndroid::GetInstance()->StopFetchingDeviceMotionData();
+ SensorManagerAndroid::GetInstance()->StopFetchingDeviceMotionData();
return true;
case CONSUMER_TYPE_ORIENTATION:
- DataFetcherImplAndroid::GetInstance()->
- StopFetchingDeviceOrientationData();
+ SensorManagerAndroid::GetInstance()->StopFetchingDeviceOrientationData();
return true;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698