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

Unified Diff: base/trace_event/blame_context.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | base/trace_event/blame_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/blame_context.cc
diff --git a/base/trace_event/blame_context.cc b/base/trace_event/blame_context.cc
index 0bf78962d6ab559bba3aa657767b20bd652fe05c..27d2d2eb7509c2b57f161aa5263c2787cc337a3c 100644
--- a/base/trace_event/blame_context.cc
+++ b/base/trace_event/blame_context.cc
@@ -57,12 +57,13 @@ void BlameContext::TakeSnapshot() {
DCHECK(WasInitialized());
if (!*category_group_enabled_)
return;
- scoped_ptr<trace_event::TracedValue> snapshot(new trace_event::TracedValue);
+ std::unique_ptr<trace_event::TracedValue> snapshot(
+ new trace_event::TracedValue);
AsValueInto(snapshot.get());
static const char* kArgName = "snapshot";
const int kNumArgs = 1;
unsigned char arg_types[1] = {TRACE_VALUE_TYPE_CONVERTABLE};
- scoped_ptr<trace_event::ConvertableToTraceFormat> arg_values[1] = {
+ std::unique_ptr<trace_event::ConvertableToTraceFormat> arg_values[1] = {
std::move(snapshot)};
TRACE_EVENT_API_ADD_TRACE_EVENT(TRACE_EVENT_PHASE_SNAPSHOT_OBJECT,
category_group_enabled_, type_, scope_, id_,
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | base/trace_event/blame_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698