| 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 eba2fe561ec660c853ecb755da4c3effa6826912..1bdc4c2216b0ac9c8ac77042cf62b7ca400de909 100644
|
| --- a/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| +++ b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| @@ -164,8 +164,11 @@ void Sensor::initSensorProxyIfNeeded() {
|
| m_sensorProxy = provider->getSensorProxy(m_type);
|
|
|
| if (!m_sensorProxy) {
|
| - m_sensorProxy = provider->createSensorProxy(m_type, document->page(),
|
| - createSensorReadingFactory());
|
| + RefPtr<SecurityOrigin> origin = getExecutionContext()->getSecurityOrigin();
|
| + DCHECK(origin);
|
| + m_sensorProxy =
|
| + provider->createSensorProxy(m_type, document->page(), std::move(origin),
|
| + createSensorReadingFactory());
|
| }
|
| }
|
|
|
|
|