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

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

Issue 2534703002: [Sensors] Layouts test to check frequency hint (Closed)
Patch Set: Comments from Reilly 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/MagnetometerReading.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/MagnetometerReading.cpp b/third_party/WebKit/Source/modules/sensor/MagnetometerReading.cpp
index 38fdc6a31e294bcf44d178bd47616daf132bc6ae..5270eca003f2a6b16794c2ab377328437dbfc53c 100644
--- a/third_party/WebKit/Source/modules/sensor/MagnetometerReading.cpp
+++ b/third_party/WebKit/Source/modules/sensor/MagnetometerReading.cpp
@@ -48,7 +48,7 @@ double MagnetometerReading::z() const {
bool MagnetometerReading::isReadingUpdated(
const device::SensorReading& previous) const {
- return previous.values[0] != x() && previous.values[1] != y() &&
+ return previous.values[0] != x() || previous.values[1] != y() ||
previous.values[2] != z();
}

Powered by Google App Engine
This is Rietveld 408576698