Call ConfirmAuthToken when upload is done
ConfirmAuthToken will set secret used to generate provided token as
primary.
BUG=25766813
Change-Id: Ib00be7d1a64db078835c78e51d7a19c4780f3a06
Reviewed-on: https://weave-review.googlesource.com/1933
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/src/device_registration_info.h b/src/device_registration_info.h
index 04fb7b6..4a1c925 100644
--- a/src/device_registration_info.h
+++ b/src/device_registration_info.h
@@ -202,7 +202,9 @@
void OnUpdateDeviceResourceError(ErrorPtr error);
void SendAuthInfo();
- void OnSendAuthInfoDone(const base::DictionaryValue& body, ErrorPtr error);
+ void OnSendAuthInfoDone(const std::vector<uint8_t>& token,
+ const base::DictionaryValue& body,
+ ErrorPtr error);
// Callback from GetDeviceInfo() to retrieve the device resource timestamp
// and retry UpdateDeviceResource() call.