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 := \
libbinderwrapper \
libbrillo \
libbrillo-binder \
libbrillo-dbus \
libbrillo-stream \
libchrome \
libchrome-dbus \
libdbus \
libutils \
libweaved \
......
......@@ -274,10 +274,9 @@ void Daemon::UpdateDeviceState() {
if (!weave_service)
return;
brillo::VariantDictionary state_change{
{"_ledflasher.status", status_},
{"_ledflasher.leds", leds},
};
base::DictionaryValue state_change;
state_change.SetString("_ledflasher.status", status_);
state_change.Set("_ledflasher.leds", brillo::ToValue(leds).release());
weave_service->SetStateProperties(kWeaveComponent, state_change, nullptr);
}
......
service ledflasher /system/bin/ledflasher
class late_start
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