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

Unified Diff: components/domain_reliability/context_manager.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/context_manager.cc
diff --git a/components/domain_reliability/context_manager.cc b/components/domain_reliability/context_manager.cc
index 4cb52420bed7bb32e70c04ba5f2cc28eb2cc993c..54d5eaa176e7f978770bec4df59c9f2b2565d3d0 100644
--- a/components/domain_reliability/context_manager.cc
+++ b/components/domain_reliability/context_manager.cc
@@ -99,7 +99,7 @@ std::unique_ptr<base::Value> DomainReliabilityContextManager::GetWebUIData()
const {
std::unique_ptr<base::ListValue> contexts_value(new base::ListValue());
for (const auto& context_entry : contexts_)
- contexts_value->Append(context_entry.second->GetWebUIData().release());
+ contexts_value->Append(context_entry.second->GetWebUIData());
return std::move(contexts_value);
}

Powered by Google App Engine
This is Rietveld 408576698