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