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

Unified Diff: components/tracing/child_trace_message_filter.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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: components/tracing/child_trace_message_filter.cc
diff --git a/components/tracing/child_trace_message_filter.cc b/components/tracing/child_trace_message_filter.cc
index b0b790a772247285bd5b7deb3882d507b958613e..ac05a180b5b60f92d0c69a6ea4ca615b3b546e6e 100644
--- a/components/tracing/child_trace_message_filter.cc
+++ b/components/tracing/child_trace_message_filter.cc
@@ -4,6 +4,8 @@
#include "components/tracing/child_trace_message_filter.h"
+#include <memory>
+
#include "base/memory/ref_counted_memory.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/statistics_recorder.h"
@@ -255,12 +257,13 @@ void ChildTraceMessageFilter::OnSetUMACallback(
if (!existing_histogram)
return;
- scoped_ptr<base::HistogramSamples> samples =
+ std::unique_ptr<base::HistogramSamples> samples =
existing_histogram->SnapshotSamples();
if (!samples)
return;
- scoped_ptr<base::SampleCountIterator> sample_iterator = samples->Iterator();
+ std::unique_ptr<base::SampleCountIterator> sample_iterator =
+ samples->Iterator();
if (!sample_iterator)
return;
« no previous file with comments | « components/timers/alarm_timer_unittest.cc ('k') | components/tracing/child_trace_message_filter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698