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 aaede9f5011bdb801b1e32c4918817810245c91f..3542cf3d89b2a33ef677ac7baa0368b50dbd7b3f 100644 |
--- a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp |
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp |
@@ -13,19 +13,19 @@ using device::mojom::blink::SensorType; |
namespace blink { |
// static |
-AmbientLightSensor* AmbientLightSensor::create(ExecutionContext* context, const SensorOptions& sensorOptions) |
+AmbientLightSensor* AmbientLightSensor::create(ScriptState* scriptState, ExecutionContext* context, const SensorOptions& options, ExceptionState& exceptionState) |
{ |
- return new AmbientLightSensor(context, sensorOptions); |
+ return new AmbientLightSensor(scriptState, context, options, exceptionState); |
} |
// static |
-AmbientLightSensor* AmbientLightSensor::create(ExecutionContext* context) |
+AmbientLightSensor* AmbientLightSensor::create(ScriptState* scriptState, ExecutionContext* context, ExceptionState& exceptionState) |
{ |
- return create(context, SensorOptions()); |
+ return create(scriptState, context, SensorOptions(), exceptionState); |
} |
-AmbientLightSensor::AmbientLightSensor(ExecutionContext* executionContext, const SensorOptions& sensorOptions) |
- : Sensor(executionContext, sensorOptions, SensorType::AMBIENT_LIGHT) |
+AmbientLightSensor::AmbientLightSensor(ScriptState* scriptState, ExecutionContext* context, const SensorOptions& options, ExceptionState& exceptionState) |
+ : Sensor(scriptState, context, options, exceptionState, SensorType::AMBIENT_LIGHT) |
{ |
} |