Enable component information on device state update patches Add the component path for the state patch being sent to the device BUG: 26106924 Change-Id: Iffbb81fcc9278e6191563220c5dc29897ff59643 Reviewed-on: https://weave-review.googlesource.com/1970 Reviewed-by: Johan Euphrosine <proppy@google.com>
diff --git a/src/device_registration_info.cc b/src/device_registration_info.cc index bee536b..4e5b345 100644 --- a/src/device_registration_info.cc +++ b/src/device_registration_info.cc
@@ -1164,9 +1164,7 @@ std::unique_ptr<base::DictionaryValue> patch{new base::DictionaryValue}; patch->SetString("timeMs", std::to_string(state_change.timestamp.ToJavaTime())); - // TODO(avakulenko): Uncomment this once server supports "component" - // attribute on a state patch object. - // patch->SetString("component", state_change.component); + patch->SetString("component", state_change.component); patch->Set("patch", state_change.changed_properties.release()); patches->Append(patch.release()); }