Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5110)

Unified Diff: chrome/browser/ui/webui/settings/chromeos/device_power_handler.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698