commit | 70d57945d5dd0db8b90c1083966b001a630cdfed | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Mon Nov 23 13:01:06 2015 -0800 |
committer | Vitaly Buka <vitalybuka@google.com> | Mon Nov 23 21:08:57 2015 +0000 |
tree | 6067f90993b09b5256d6f1cdad6cc608b5d29b7a | |
parent | 9f78ca35c599dc037b0da97736ce9c453f7924ce [diff] |
Don't expose old cloud ID in Privet info BUG:25342842 Change-Id: I8f9847d69d837e025640aa62137cf817005b2456 Reviewed-on: https://weave-review.googlesource.com/1621 Reviewed-by: Vitaly Buka <vitalybuka@google.com> (cherry picked from commit 1c522d8f6a136c16138e5b4bf324a9e77ddd1b63) Reviewed-on: https://weave-review.googlesource.com/1622
diff --git a/src/privet/cloud_delegate.cc b/src/privet/cloud_delegate.cc index 4c28141..b0eea41 100644 --- a/src/privet/cloud_delegate.cc +++ b/src/privet/cloud_delegate.cc
@@ -134,7 +134,9 @@ } std::string GetCloudId() const override { - return device_->GetSettings().cloud_id; + return connection_state_.status() > ConnectionState::kUnconfigured + ? device_->GetSettings().cloud_id + : ""; } const base::DictionaryValue& GetState() const override { return state_; }