buffet: Make RegisterDevice accept only ticket ID
Changing name, description and location is possible using
UpdateDeviceInfo.
BUG=none
TEST='FEATURES=test emerge-gizmo buffet'
CQ-DEPEND=CL:*216413,CL:271616
Change-Id: Ieed8b8537184e0dada9c36551ee7502bd50259f4
Reviewed-on: https://chromium-review.googlesource.com/271377
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Vitaly Buka <vitalybuka@chromium.org>
Tested-by: Vitaly Buka <vitalybuka@chromium.org>
diff --git a/buffet/manager.h b/buffet/manager.h
index 479ac9b..b15d7b0 100644
--- a/buffet/manager.h
+++ b/buffet/manager.h
@@ -62,7 +62,7 @@
void CheckDeviceRegistered(DBusMethodResponse<std::string> response) override;
void GetDeviceInfo(DBusMethodResponse<std::string> response) override;
void RegisterDevice(DBusMethodResponse<std::string> response,
- const chromeos::VariantDictionary& params) override;
+ const std::string& ticket_id) override;
bool UpdateDeviceInfo(chromeos::ErrorPtr* error,
const std::string& in_name,
const std::string& in_description,