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

Unified Diff: third_party/WebKit/Source/modules/sensor/Sensor.cpp

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: third_party/WebKit/Source/modules/sensor/Sensor.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.cpp b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
index ca613f9e1e8670fb65e75c1ba499ec3b0a9a2004..8971d20763939c4c06fc46466ba8b6a716ecae87 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.cpp
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
@@ -235,7 +235,8 @@ void Sensor::startListening() {
if (!m_configuration) {
m_configuration =
- createSensorConfig(m_sensorOptions, *m_sensorProxy->defaultConfig());
+ createSensorConfig(m_sensorOptions, *m_sensorProxy->defaultConfig(),
+ m_sensorProxy->maxSupportedFrequency());
DCHECK(m_configuration);
}

Powered by Google App Engine
This is Rietveld 408576698