| Index: third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.cpp b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| index 250615652f5b3a0dfd550a89ed5892bb23d1d23f..9d716ca5e02e56ebec1fc95b3088d3d2ec82e2a2 100644
|
| --- a/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| +++ b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| @@ -91,7 +91,7 @@ void Sensor::updateState(SensorState newState)
|
| m_sensorState = newState;
|
| // Notify context that state changed.
|
| if (getExecutionContext())
|
| - getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&Sensor::notifyStateChange, this));
|
| + getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&Sensor::notifyStateChange, wrapPersistent(this)));
|
| }
|
|
|
| void Sensor::notifyStateChange()
|
|
|