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

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

Issue 2534703002: [Sensors] Layouts test to check frequency hint (Closed)
Patch Set: fixed MagnetometerReading::isReadingUpdated Created 4 years, 1 month 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/SensorProxy.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp b/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
index 22103b6862f8e50bfbe7b3d9474aec8c457e08f4..374ad03d5d96a991b9fa681511527c25e07bcc3e 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
@@ -146,6 +146,7 @@ void SensorProxy::RaiseError() {
}
void SensorProxy::SensorReadingChanged() {
+ DCHECK_EQ(ReportingMode::ON_CHANGE, m_mode);
updateSensorReading();
}

Powered by Google App Engine
This is Rietveld 408576698