Add {Get,Set}CohortHint interface.
Export the "cohort hint" getter and setter in the client interfaces
(D-Bus and Binder). The cohort hint is sent to Omaha on every update
check request but can be ignored and/or reset by Omaha on every
response.
Other minor linter fixes to the affected files.
Bug: 31740109
Test: Build with D-Bus and with Binder.
Change-Id: I93214f6ffb8662c238b3351e52bf2bdf23e46a9c
diff --git a/dbus_service.cc b/dbus_service.cc
index d1e6d9e..0a7ad5b 100644
--- a/dbus_service.cc
+++ b/dbus_service.cc
@@ -98,6 +98,16 @@
return common_->GetChannel(error, in_get_current_channel, out_channel);
}
+bool DBusUpdateEngineService::GetCohortHint(ErrorPtr* error,
+ string* out_cohort_hint) {
+ return common_->GetCohortHint(error, out_cohort_hint);
+}
+
+bool DBusUpdateEngineService::SetCohortHint(ErrorPtr* error,
+ const string& in_cohort_hint) {
+ return common_->SetCohortHint(error, in_cohort_hint);
+}
+
bool DBusUpdateEngineService::SetP2PUpdatePermission(ErrorPtr* error,
bool in_enabled) {
return common_->SetP2PUpdatePermission(error, in_enabled);