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

Unified Diff: third_party/WebKit/Source/modules/sensor/Magnetometer.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/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());
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Magnetometer.h ('k') | third_party/WebKit/Source/modules/sensor/Magnetometer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698