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

Unified Diff: third_party/WebKit/Source/platform/TracedValue.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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: third_party/WebKit/Source/platform/TracedValue.cpp
diff --git a/third_party/WebKit/Source/platform/TracedValue.cpp b/third_party/WebKit/Source/platform/TracedValue.cpp
index 3302698ed2e50427d5ee1cee8a839406b2961cac..d60ad77fb96aa355c955eab02b384e2f0410380c 100644
--- a/third_party/WebKit/Source/platform/TracedValue.cpp
+++ b/third_party/WebKit/Source/platform/TracedValue.cpp
@@ -5,13 +5,15 @@
#include "platform/TracedValue.h"
#include "base/trace_event/trace_event_argument.h"
+#include "wtf/PtrUtil.h"
#include "wtf/text/StringUTF8Adaptor.h"
+#include <memory>
namespace blink {
-PassOwnPtr<TracedValue> TracedValue::create()
+std::unique_ptr<TracedValue> TracedValue::create()
{
- return adoptPtr(new TracedValue());
+ return wrapUnique(new TracedValue());
}
TracedValue::TracedValue()
« no previous file with comments | « third_party/WebKit/Source/platform/TracedValue.h ('k') | third_party/WebKit/Source/platform/TracedValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698