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

Unified Diff: components/domain_reliability/scheduler.cc

Issue 2051663003: base::ListValue::Append cleanup: pass unique_ptr instead of the released pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: components/domain_reliability/scheduler.cc
diff --git a/components/domain_reliability/scheduler.cc b/components/domain_reliability/scheduler.cc
index de9df5ebd450a5bb20fe10ba702af8a9a12d3242..6e0aa6b3d96f299ed7be988aab1fe828110e9dc5 100644
--- a/components/domain_reliability/scheduler.cc
+++ b/components/domain_reliability/scheduler.cc
@@ -190,7 +190,7 @@ std::unique_ptr<base::Value> DomainReliabilityScheduler::GetWebUIData() const {
value->SetInteger("next_upload",
(collector->GetReleaseTime() - now).InSeconds());
// Using release instead of Pass because Pass can't implicitly upcast.
- collectors_value->Append(value.release());
+ collectors_value->Append(std::move(value));
}
data->Set("collectors", std::move(collectors_value));

Powered by Google App Engine
This is Rietveld 408576698