Index: third_party/WebKit/Source/modules/sensor/Magnetometer.cpp |
diff --git a/third_party/WebKit/Source/modules/sensor/Magnetometer.cpp b/third_party/WebKit/Source/modules/sensor/Magnetometer.cpp |
index 56fbe6798dfef25fd40c1de6094204ea99a83c7e..befedf5e6dc8f1fb169f19d13a9d5addfcbcf631 100644 |
--- a/third_party/WebKit/Source/modules/sensor/Magnetometer.cpp |
+++ b/third_party/WebKit/Source/modules/sensor/Magnetometer.cpp |
@@ -11,22 +11,25 @@ using device::mojom::blink::SensorType; |
namespace blink { |
// static |
-Magnetometer* Magnetometer::create(ScriptState* scriptState, |
+Magnetometer* Magnetometer::create(ExecutionContext* executionContext, |
const SensorOptions& options, |
ExceptionState& exceptionState) { |
- return new Magnetometer(scriptState, options, exceptionState); |
+ return new Magnetometer(executionContext, options, exceptionState); |
} |
// static |
-Magnetometer* Magnetometer::create(ScriptState* scriptState, |
+Magnetometer* Magnetometer::create(ExecutionContext* executionContext, |
ExceptionState& exceptionState) { |
- return create(scriptState, SensorOptions(), exceptionState); |
+ return create(executionContext, SensorOptions(), exceptionState); |
} |
-Magnetometer::Magnetometer(ScriptState* scriptState, |
+Magnetometer::Magnetometer(ExecutionContext* executionContext, |
const SensorOptions& options, |
ExceptionState& exceptionState) |
- : Sensor(scriptState, options, exceptionState, SensorType::MAGNETOMETER) {} |
+ : Sensor(executionContext, |
+ options, |
+ exceptionState, |
+ SensorType::MAGNETOMETER) {} |
MagnetometerReading* Magnetometer::reading() const { |
return static_cast<MagnetometerReading*>(Sensor::reading()); |