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

Unified Diff: device/generic_sensor/public/cpp/sensor_struct_traits.cc

Issue 2927263002: Add |notify_client_on_reading_change| flag to sensor configuration (Closed)
Patch Set: fix browser test Created 3 years, 6 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/public/cpp/sensor_struct_traits.cc
diff --git a/device/generic_sensor/public/cpp/sensor_struct_traits.cc b/device/generic_sensor/public/cpp/sensor_struct_traits.cc
index 2a36547a38cae03b3c3932ec2bfb8b36578c2627..30a5c82cc4d64a018c3c5ad6ee3e31453d0ee2eb 100644
--- a/device/generic_sensor/public/cpp/sensor_struct_traits.cc
+++ b/device/generic_sensor/public/cpp/sensor_struct_traits.cc
@@ -19,6 +19,8 @@ bool StructTraits<device::mojom::SensorConfigurationDataView,
}
out->set_frequency(data.frequency());
+ out->set_notify_client_on_reading_change(
+ data.notify_client_on_reading_change());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698