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 5a822175efed08b93f12f9dc00402a041eb18e51..eb6e6510a3758e86683e6bbfaff00e5fdcdf6c0a 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(); |
} |