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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.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/page/scrolling/ScrollStateTest.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp
index e79dce575a2ccc3b7987515615a33d85d2275fb3..5b8416509ef6280a270b51f10713932fea2575d9 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp
@@ -7,6 +7,8 @@
#include "core/dom/Document.h"
#include "core/dom/Element.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -14,7 +16,7 @@ namespace {
ScrollState* CreateScrollState(double deltaX, double deltaY, bool beginning, bool ending)
{
- OwnPtr<ScrollStateData> scrollStateData = adoptPtr(new ScrollStateData());
+ std::unique_ptr<ScrollStateData> scrollStateData = wrapUnique(new ScrollStateData());
scrollStateData->delta_x = deltaX;
scrollStateData->delta_y = deltaY;
scrollStateData->is_beginning = beginning;

Powered by Google App Engine
This is Rietveld 408576698