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

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

Issue 2537863003: Remove [ConstructorCallWith=ScriptState] from Sensor (Closed)
Patch Set: Created 4 years 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 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());

Powered by Google App Engine
This is Rietveld 408576698