| 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 60551e7edd45e22c1090aaf8f1f05beec2d6fa4a..cc5967b8c929be5141a3496d2514725b75bf4539 100644
|
| --- a/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| +++ b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| @@ -167,8 +167,10 @@ void Sensor::initSensorProxyIfNeeded() {
|
| m_sensorProxy = provider->getSensor(m_type);
|
|
|
| if (!m_sensorProxy) {
|
| - m_sensorProxy =
|
| - provider->createSensor(m_type, createSensorReadingFactory());
|
| + RefPtr<SecurityOrigin> origin = getExecutionContext()->getSecurityOrigin();
|
| + DCHECK(origin);
|
| + m_sensorProxy = provider->createSensor(m_type, std::move(origin),
|
| + createSensorReadingFactory());
|
| }
|
| }
|
|
|
|
|