Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index 688a1963bf68e261869055bb8a18d1bbf0ca9c32..4d2887f617f1be1dd308398ce33d04d5e5c462cd 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -57,6 +57,7 @@ |
#include "public/platform/WebLayer.h" |
#include "wtf/text/Base64.h" |
#include "wtf/text/StringBuilder.h" |
+#include <memory> |
namespace blink { |
@@ -398,7 +399,7 @@ void InspectorLayerTreeAgent::replaySnapshot(ErrorString* errorString, const Str |
const PictureSnapshot* snapshot = snapshotById(errorString, snapshotId); |
if (!snapshot) |
return; |
- OwnPtr<Vector<char>> base64Data = snapshot->replay(fromStep.fromMaybe(0), toStep.fromMaybe(0), scale.fromMaybe(1.0)); |
+ std::unique_ptr<Vector<char>> base64Data = snapshot->replay(fromStep.fromMaybe(0), toStep.fromMaybe(0), scale.fromMaybe(1.0)); |
if (!base64Data) { |
*errorString = "Image encoding failed"; |
return; |
@@ -423,7 +424,7 @@ void InspectorLayerTreeAgent::profileSnapshot(ErrorString* errorString, const St |
FloatRect rect; |
if (clipRect.isJust()) |
parseRect(clipRect.fromJust(), &rect); |
- OwnPtr<PictureSnapshot::Timings> timings = snapshot->profile(minRepeatCount.fromMaybe(1), minDuration.fromMaybe(0), clipRect.isJust() ? &rect : 0); |
+ std::unique_ptr<PictureSnapshot::Timings> timings = snapshot->profile(minRepeatCount.fromMaybe(1), minDuration.fromMaybe(0), clipRect.isJust() ? &rect : 0); |
*outTimings = Array<Array<double>>::create(); |
for (size_t i = 0; i < timings->size(); ++i) { |
const Vector<double>& row = (*timings)[i]; |