Index: chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc |
diff --git a/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc |
index 383b155e6df6d2e5cf9775e2f41527775ac9f88f..8e4cc5f1f2fbcaa773d7853258fc06640f9a3d62 100644 |
--- a/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc |
+++ b/chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc |
@@ -116,8 +116,7 @@ void PowerHandler::SendBatteryStatus() { |
battery_dict.SetString("statusText", status_text); |
CallJavascriptFunction("cr.webUIListenerCallback", |
- base::StringValue("battery-status-changed"), |
- battery_dict); |
+ base::Value("battery-status-changed"), battery_dict); |
} |
void PowerHandler::SendPowerSources() { |
@@ -131,10 +130,10 @@ void PowerHandler::SendPowerSources() { |
sources_list.Append(std::move(dict)); |
} |
- CallJavascriptFunction( |
- "cr.webUIListenerCallback", base::StringValue("power-sources-changed"), |
- sources_list, base::StringValue(power_status_->GetCurrentPowerSourceID()), |
- base::Value(power_status_->IsUsbChargerConnected())); |
+ CallJavascriptFunction("cr.webUIListenerCallback", |
+ base::Value("power-sources-changed"), sources_list, |
+ base::Value(power_status_->GetCurrentPowerSourceID()), |
+ base::Value(power_status_->IsUsbChargerConnected())); |
} |
} // namespace settings |