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.
(cherry picked from commit 5b5fa8b412312a41cfd4d7ab475b54d4f730ed2a)
Change-Id: Ieb40c2d4bbe2ce926d54b6348b22f2840d8327db
Reviewed-on: https://chromium-review.googlesource.com/395206
Commit-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Christopher Book <cbook@chromium.org>
diff --git a/dbus_service.cc b/dbus_service.cc
index de1f9b5..18b5b9e 100644
--- a/dbus_service.cc
+++ b/dbus_service.cc
@@ -97,6 +97,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);