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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp

Issue 2551223003: [Sensors] Align sensor reading updates and 'onchange' notification with rAF. (Closed)
Patch Set: rebased 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/SensorProviderProxy.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp
index be951e0af2bab2aa63f5226ac4304dd8ceb13c58..9dca7431e35ad93e6f2423732fe0c4ce92ae4247 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp
+++ b/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp
@@ -55,12 +55,12 @@ DEFINE_TRACE(SensorProviderProxy) {
SensorProxy* SensorProviderProxy::createSensorProxy(
device::mojom::blink::SensorType type,
- Page* page,
+ Document* document,
std::unique_ptr<SensorReadingFactory> readingFactory) {
DCHECK(!getSensorProxy(type));
SensorProxy* sensor =
- new SensorProxy(type, this, page, std::move(readingFactory));
+ new SensorProxy(type, this, document, std::move(readingFactory));
m_sensorProxies.add(sensor);
return sensor;

Powered by Google App Engine
This is Rietveld 408576698