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

Unified Diff: third_party/WebKit/Source/core/layout/TracedLayoutObject.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/core/layout/TracedLayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp b/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp
index fddb6c4aea6748ba1ea9a99221dffb885c1b9f6c..efc34549d1ec8945943d321e6697697066066893 100644
--- a/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp
@@ -9,6 +9,7 @@
#include "core/layout/LayoutText.h"
#include "core/layout/LayoutView.h"
#include <inttypes.h>
+#include <memory>
namespace blink {
@@ -99,9 +100,9 @@ void dumpToTracedValue(const LayoutObject& object, bool traceGeometry, TracedVal
} // namespace
-PassOwnPtr<TracedValue> TracedLayoutObject::create(const LayoutView& view, bool traceGeometry)
+std::unique_ptr<TracedValue> TracedLayoutObject::create(const LayoutView& view, bool traceGeometry)
{
- OwnPtr<TracedValue> tracedValue = TracedValue::create();
+ std::unique_ptr<TracedValue> tracedValue = TracedValue::create();
dumpToTracedValue(view, traceGeometry, tracedValue.get());
return tracedValue;
}

Powered by Google App Engine
This is Rietveld 408576698