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

Unified Diff: chrome/browser/ui/webui/chromeos/power_ui.cc

Issue 2812953002: Stop passing raw pointers to base::Value API in c/b/ui (Closed)
Patch Set: Rebased Created 3 years, 8 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/chromeos/power_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/power_ui.cc b/chrome/browser/ui/webui/chromeos/power_ui.cc
index 70cfa00108876ab2e416f9e6f5860fbc79b7adf5..523a169b9486bd541352b7405f7985e1c415d202 100644
--- a/chrome/browser/ui/webui/chromeos/power_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/power_ui.cc
@@ -177,7 +177,7 @@ void PowerMessageHandler::GetJsStateOccupancyData(
state_dict->SetDouble(state_names[index],
static_cast<double>(sample.time_in_state[index]));
}
- js_sample->Set("timeInState", state_dict.release());
+ js_sample->Set("timeInState", std::move(state_dict));
js_sample_list->Append(std::move(js_sample));
}

Powered by Google App Engine
This is Rietveld 408576698