Index: third_party/WebKit/Source/modules/sensor/Sensor.h |
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.h b/third_party/WebKit/Source/modules/sensor/Sensor.h |
index 2020d7633eb5887760099a41113172e9033b391e..db803942314c1af8f82f6fea213f54881594da49 100644 |
--- a/third_party/WebKit/Source/modules/sensor/Sensor.h |
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.h |
@@ -71,9 +71,11 @@ class Sensor : public EventTargetWithInlineData, |
using SensorConfigurationPtr = device::mojom::blink::SensorConfigurationPtr; |
using SensorConfiguration = device::mojom::blink::SensorConfiguration; |
- virtual SensorConfigurationPtr createSensorConfig( |
- const SensorOptions&, |
- const SensorConfiguration& defaultConfiguration) = 0; |
+ |
+ // The default implementation will init frequency configuration parameter, |
+ // concrete sensor implementations can override this method to handle other |
+ // parameters if needed. |
+ virtual SensorConfigurationPtr createSensorConfig(); |
private: |
void initSensorProxyIfNeeded(); |