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

Unified Diff: content/browser/tracing/etw_system_event_consumer_win.cc

Issue 1874893002: Convert //content/browser 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: content/browser/tracing/etw_system_event_consumer_win.cc
diff --git a/content/browser/tracing/etw_system_event_consumer_win.cc b/content/browser/tracing/etw_system_event_consumer_win.cc
index 09d81f7dbbdcda4264826aea2cd1f407f0ee5523..ede14ceda1e682943d8927a12608ffdea6163386 100644
--- a/content/browser/tracing/etw_system_event_consumer_win.cc
+++ b/content/browser/tracing/etw_system_event_consumer_win.cc
@@ -166,7 +166,7 @@ void EtwSystemEventConsumer::AddSyncEventToBuffer() {
now_in_us.QuadPart = now.ToInternalValue();
// Add fields to the event.
- scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
value->Set("guid", new base::StringValue("ClockSync"));
value->Set("walltime", new base::StringValue(
base::StringPrintf("%08X%08X",
@@ -184,7 +184,7 @@ void EtwSystemEventConsumer::AddSyncEventToBuffer() {
void EtwSystemEventConsumer::AppendEventToBuffer(EVENT_TRACE* event) {
using base::FundamentalValue;
- scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
// Add header fields to the event.
LARGE_INTEGER ts_us;
@@ -230,7 +230,7 @@ void EtwSystemEventConsumer::TraceAndConsumeOnThread() {
void EtwSystemEventConsumer::FlushOnThread(
const StopAgentTracingCallback& callback) {
// Add the header information to the stream.
- scoped_ptr<base::DictionaryValue> header(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> header(new base::DictionaryValue());
header->Set("name", new base::StringValue("ETW"));
// Release and pass the events buffer.
« no previous file with comments | « content/browser/tracing/etw_system_event_consumer_win.h ('k') | content/browser/tracing/memory_tracing_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698