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

Unified Diff: device/generic_sensor/platform_sensor_configuration.cc

Issue 2284613002: [sensors] Android platform adaptation for Generic Sensor API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for Ted.C review comments + unit tests. Created 4 years, 3 months 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: device/generic_sensor/platform_sensor_configuration.cc
diff --git a/device/generic_sensor/platform_sensor_configuration.cc b/device/generic_sensor/platform_sensor_configuration.cc
index 760d62eeaf32d3ecc789aa34f25ce658dd9c65e1..f625a77fbda2919b8de9af41d13a45532a82b555 100644
--- a/device/generic_sensor/platform_sensor_configuration.cc
+++ b/device/generic_sensor/platform_sensor_configuration.cc
@@ -19,4 +19,9 @@ bool PlatformSensorConfiguration::operator==(
return frequency_ == other.frequency();
}
+bool PlatformSensorConfiguration::operator>(
+ const PlatformSensorConfiguration& other) const {
+ return frequency() > other.frequency();
+}
+
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698