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

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

Issue 2465363004: [Sensors] Consider maximum supported frequency (Closed)
Patch Set: Comment from Tim 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/AmbientLightSensor.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp
index 12af2edac73bf79b4e8300c54898c14106988bef..b074347c9384963d69ef23544cb0ce02364ea626 100644
--- a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp
@@ -40,15 +40,6 @@ AmbientLightSensor::createSensorReadingFactory() {
new SensorReadingFactoryImpl<AmbientLightSensorReading>());
}
-auto AmbientLightSensor::createSensorConfig(
- const SensorOptions& options,
- const SensorConfiguration& defaultConfig) -> SensorConfigurationPtr {
- auto result = device::mojom::blink::SensorConfiguration::New();
- result->frequency =
- options.hasFrequency() ? options.frequency() : defaultConfig.frequency;
- return result;
-}
-
DEFINE_TRACE(AmbientLightSensor) {
Sensor::trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h ('k') | third_party/WebKit/Source/modules/sensor/Sensor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698