Index: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp |
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp |
index 243c8f567abd3b83ac192d914e82462333631f7b..04c3afe31e7c76d590423b17360957335cf2b123 100644 |
--- a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp |
+++ b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp |
@@ -4,6 +4,7 @@ |
#include "modules/sensor/SensorProviderProxy.h" |
+#include "core/dom/ExecutionContext.h" |
#include "modules/sensor/SensorProxy.h" |
#include "modules/sensor/SensorReading.h" |
#include "platform/mojo/MojoHelper.h" |
@@ -44,10 +45,12 @@ DEFINE_TRACE(SensorProviderProxy) { |
SensorProxy* SensorProviderProxy::createSensor( |
device::mojom::blink::SensorType type, |
+ ExecutionContext* context, |
std::unique_ptr<SensorReadingFactory> readingFactory) { |
DCHECK(!getSensor(type)); |
- SensorProxy* sensor = new SensorProxy(type, this, std::move(readingFactory)); |
+ SensorProxy* sensor = |
+ new SensorProxy(type, context, this, std::move(readingFactory)); |
m_sensors.add(sensor); |
return sensor; |