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

Unified Diff: content/browser/device_sensors/device_sensor_host.cc

Issue 2126443002: Rename DeviceInertialSensorService to DeviceSensorService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conversion--sensors
Patch Set: rebase Created 4 years, 5 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_sensors/device_sensor_host.cc
diff --git a/content/browser/device_sensors/device_sensor_host.cc b/content/browser/device_sensors/device_sensor_host.cc
index 9f5fd66c6822259b745b166ed20ac4937568c4ab..f47429240adbbba70ac84d9664d31e3c508b7847 100644
--- a/content/browser/device_sensors/device_sensor_host.cc
+++ b/content/browser/device_sensors/device_sensor_host.cc
@@ -4,7 +4,7 @@
#include "content/browser/device_sensors/device_sensor_host.h"
-#include "content/browser/device_sensors/device_inertial_sensor_service.h"
+#include "content/browser/device_sensors/device_sensor_service.h"
#include "content/public/browser/browser_thread.h"
namespace content {
@@ -24,7 +24,7 @@ template <typename MojoInterface, ConsumerType consumer_type>
DeviceSensorHost<MojoInterface, consumer_type>::~DeviceSensorHost() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (is_started_)
- DeviceInertialSensorService::GetInstance()->RemoveConsumer(consumer_type);
+ DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type);
}
template <typename MojoInterface, ConsumerType consumer_type>
@@ -35,10 +35,9 @@ void DeviceSensorHost<MojoInterface, consumer_type>::DeviceSensorHost::
if (is_started_)
return;
is_started_ = true;
- DeviceInertialSensorService::GetInstance()->AddConsumer(consumer_type);
+ DeviceSensorService::GetInstance()->AddConsumer(consumer_type);
callback.Run(
- DeviceInertialSensorService::GetInstance()->GetSharedMemoryHandle(
- consumer_type));
+ DeviceSensorService::GetInstance()->GetSharedMemoryHandle(consumer_type));
}
template <typename MojoInterface, ConsumerType consumer_type>
@@ -49,7 +48,7 @@ void DeviceSensorHost<MojoInterface,
if (!is_started_)
return;
is_started_ = false;
- DeviceInertialSensorService::GetInstance()->RemoveConsumer(consumer_type);
+ DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type);
}
template class DeviceSensorHost<device::mojom::LightSensor,
« no previous file with comments | « content/browser/device_sensors/device_sensor_browsertest.cc ('k') | content/browser/device_sensors/device_sensor_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698