update_engine: Removing brillo::Any from weaved's public APIs
Weaved replaces brillo::Any with base::Value in its client library,
so need to update clients.
BUG: 26558300
Change-Id: I0f4331395f3eeba3ee39856707980e0b7377543a
diff --git a/weave_service.cc b/weave_service.cc
index b8ac174..0a145e4 100644
--- a/weave_service.cc
+++ b/weave_service.cc
@@ -98,14 +98,13 @@
// changes.
progress = std::floor(progress * 100.) / 100.;
- brillo::VariantDictionary state{
- {"_updater.currentChannel", current_channel},
- {"_updater.trackingChannel", tracking_channel},
- {"_updater.status", UpdateStatusToWeaveStatus(update_status)},
- {"_updater.progress", progress},
- {"_updater.lastUpdateCheckTimestamp",
- static_cast<double>(last_checked_time)},
- };
+ base::DictionaryValue state;
+ state.SetString("_updater.currentChannel", current_channel);
+ state.SetString("_updater.trackingChannel", tracking_channel);
+ state.SetString("_updater.status", UpdateStatusToWeaveStatus(update_status));
+ state.SetDouble("_updater.progress", progress);
+ state.SetDouble("_updater.lastUpdateCheckTimestamp",
+ static_cast<double>(last_checked_time));
if (!weave_service->SetStateProperties(kWeaveComponent, state, nullptr)) {
LOG(ERROR) << "Failed to update _updater state.";