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

Unified Diff: chrome/browser/ui/webui/options/chromeos/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/options/chromeos/power_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/power_handler.cc b/chrome/browser/ui/webui/options/chromeos/power_handler.cc
index 0411e30952a8b26760dcce7c4fba15bb9ddf9635..8cd2cb2217683f22059bdd924897add48e87061b 100644
--- a/chrome/browser/ui/webui/options/chromeos/power_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/power_handler.cc
@@ -87,7 +87,7 @@ void PowerHandler::RegisterMessages() {
void PowerHandler::OnPowerStatusChanged() {
web_ui()->CallJavascriptFunctionUnsafe(
"options.PowerOverlay.setBatteryStatusText",
- base::StringValue(GetStatusValue()));
+ base::Value(GetStatusValue()));
UpdatePowerSources();
}
@@ -165,7 +165,7 @@ void PowerHandler::UpdatePowerSources() {
web_ui()->CallJavascriptFunctionUnsafe(
"options.PowerOverlay.setPowerSources", sources_list,
- base::StringValue(status->GetCurrentPowerSourceID()),
+ base::Value(status->GetCurrentPowerSourceID()),
base::Value(status->IsUsbChargerConnected()),
base::Value(status->IsBatteryTimeBeingCalculated()));
}

Powered by Google App Engine
This is Rietveld 408576698