Skip to content
Snippets Groups Projects
Commit c5ba7e6d authored by Alex Vakulenko's avatar Alex Vakulenko
Browse files

ledflasher: Removing brillo::Any from weaved's public APIs

Weaved replaces brillo::Any with base::Value in its client library,
so need to update clients.

Also this removes last D-Bus dependencies from ledflasher.

Bug: 26558300
Change-Id: I8265e06aca6f707dde6edbebeafe0b28b8eb17ff
parent ec0b139f
No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,8 @@ LOCAL_SHARED_LIBRARIES := \ ...@@ -30,11 +30,8 @@ LOCAL_SHARED_LIBRARIES := \
libbinderwrapper \ libbinderwrapper \
libbrillo \ libbrillo \
libbrillo-binder \ libbrillo-binder \
libbrillo-dbus \
libbrillo-stream \ libbrillo-stream \
libchrome \ libchrome \
libchrome-dbus \
libdbus \
libutils \ libutils \
libweaved \ libweaved \
......
...@@ -274,10 +274,9 @@ void Daemon::UpdateDeviceState() { ...@@ -274,10 +274,9 @@ void Daemon::UpdateDeviceState() {
if (!weave_service) if (!weave_service)
return; return;
brillo::VariantDictionary state_change{ base::DictionaryValue state_change;
{"_ledflasher.status", status_}, state_change.SetString("_ledflasher.status", status_);
{"_ledflasher.leds", leds}, state_change.Set("_ledflasher.leds", brillo::ToValue(leds).release());
};
weave_service->SetStateProperties(kWeaveComponent, state_change, nullptr); weave_service->SetStateProperties(kWeaveComponent, state_change, nullptr);
} }
......
service ledflasher /system/bin/ledflasher service ledflasher /system/bin/ledflasher
class late_start class late_start
user system user system
group system dbus group system
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment