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

Unified Diff: device/generic_sensor/platform_sensor.cc

Issue 2465363004: [Sensors] Consider maximum supported frequency (Closed)
Patch Set: Created 4 years, 1 month 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: device/generic_sensor/platform_sensor.cc
diff --git a/device/generic_sensor/platform_sensor.cc b/device/generic_sensor/platform_sensor.cc
index eb98f34258d08d5b6d0498831d4a10d6ecc60d45..59cb086388e0ef551762e62635ba56dab746d934 100644
--- a/device/generic_sensor/platform_sensor.cc
+++ b/device/generic_sensor/platform_sensor.cc
@@ -29,6 +29,10 @@ mojom::SensorType PlatformSensor::GetType() const {
return type_;
}
+double PlatformSensor::GetMaximumSupportedFrequency() {
+ return 0.0;
+}
+
bool PlatformSensor::StartListening(Client* client,
const PlatformSensorConfiguration& config) {
DCHECK(clients_.HasObserver(client));

Powered by Google App Engine
This is Rietveld 408576698