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

Unified Diff: device/generic_sensor/sensor_impl.cc

Issue 2288103002: [sensors] Add GetDefaultConfiguration() to generic sensor mojo interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « device/generic_sensor/sensor_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/sensor_impl.cc
diff --git a/device/generic_sensor/sensor_impl.cc b/device/generic_sensor/sensor_impl.cc
index dccd79d80d20436a25a34ebb4750c29ab4abdfb4..c666aec8958a9d6a8a8988623f1a81e5175d2b90 100644
--- a/device/generic_sensor/sensor_impl.cc
+++ b/device/generic_sensor/sensor_impl.cc
@@ -32,6 +32,11 @@ void SensorImpl::AddConfiguration(
callback.Run(sensor_->StartListening(this, configuration));
}
+void SensorImpl::GetDefaultConfiguration(
+ const GetDefaultConfigurationCallback& callback) {
+ callback.Run(sensor_->GetDefaultConfiguration());
+}
+
void SensorImpl::RemoveConfiguration(
const PlatformSensorConfiguration& configuration,
const RemoveConfigurationCallback& callback) {
« no previous file with comments | « device/generic_sensor/sensor_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698