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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc

Issue 2287733002: Switch //components away from base::ListValue::Append(Value*) overload. (Closed)
Patch Set: Test fix Created 4 years, 4 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/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
index 2d730a84c451a37f020b19e15f17dd9e5453253f..df8c57c6b6f86dff1b44d7a3c357f1fea41ae1cc 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc
@@ -138,7 +138,7 @@ DataReductionProxyEventStore::GetSummaryValue() const {
auto events_list = base::MakeUnique<base::ListValue>();
for (const auto& event : stored_events_)
- events_list->Append(event->DeepCopy());
+ events_list->Append(event->CreateDeepCopy());
data_reduction_proxy_values->Set("events", std::move(events_list));
return data_reduction_proxy_values;
}

Powered by Google App Engine
This is Rietveld 408576698