Chromium Code Reviews

Unified Diff: net/reporting/reporting_delivery_agent.cc

Issue 2911033002: Remove raw base::DictionaryValue::Set (Closed)
Patch Set: Proper Windows Fix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/test/spawned_test_server/base_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_delivery_agent.cc
diff --git a/net/reporting/reporting_delivery_agent.cc b/net/reporting/reporting_delivery_agent.cc
index 3d42797f4ff1bada1d7a9bee79cd869936a1ee67..fb12d03b47a276d169a341e2e0ccac50ec058dc4 100644
--- a/net/reporting/reporting_delivery_agent.cc
+++ b/net/reporting/reporting_delivery_agent.cc
@@ -41,7 +41,7 @@ void SerializeReports(const std::vector<const ReportingReport*>& reports,
report_value->SetInteger("age", (now - report->queued).InMilliseconds());
report_value->SetString("type", report->type);
report_value->SetString("url", report->url.spec());
- report_value->Set("report", report->body->DeepCopy());
+ report_value->Set("report", base::MakeUnique<base::Value>(*report->body));
reports_value.Append(std::move(report_value));
}
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/test/spawned_test_server/base_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine