Persist kInvalidCredentials state
External code may want to do some additional processing when device
was unregistered from the cloud side, e.g. factory reset of the device.
Existing code switches from kInvalidCredentials to kUnregistered after
reboot. This makes processing kInvalidCredentials unreliable.
Persistence of kInvalidCredentials implemented as special case when
cloud_id is not empty but credentials are missing.
BUG:25342842
Change-Id: I80d4ce8157c70e132a55fd752a9006064cf70b57
Reviewed-on: https://weave-review.googlesource.com/1580
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
5 files changed