Index: base/trace_event/trace_log.cc |
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc |
index c8b28e3878689e8d8ac4db99bdc25214222c3ca2..791d9a208b780b95c0dc12e0f67272679f9720ff 100644 |
--- a/base/trace_event/trace_log.cc |
+++ b/base/trace_event/trace_log.cc |
@@ -1530,7 +1530,7 @@ void TraceLog::AddMetadataEventsWhileLocked() { |
lock_.AssertAcquired(); |
// Copy metadata added by |AddMetadataEvent| into the trace log. |
- for (TraceEvent* event : metadata_events_) |
+ for (const scoped_ptr<TraceEvent>& event : metadata_events_) |
AddEventToThreadSharedChunkWhileLocked(nullptr, false)->CopyFrom(*event); |
#if !defined(OS_NACL) // NaCl shouldn't expose the process id. |