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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 5b8416509ef6280a270b51f10713932fea2575d9..e79dce575a2ccc3b7987515615a33d85d2275fb3 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollStateTest.cpp
@@ -7,8 +7,6 @@
#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 {
@@ -16,7 +14,7 @@ namespace {
ScrollState* CreateScrollState(double deltaX, double deltaY, bool beginning, bool ending)
{
- std::unique_ptr<ScrollStateData> scrollStateData = wrapUnique(new ScrollStateData());
+ OwnPtr<ScrollStateData> scrollStateData = adoptPtr(new ScrollStateData());
scrollStateData->delta_x = deltaX;
scrollStateData->delta_y = deltaY;
scrollStateData->is_beginning = beginning;

Powered by Google App Engine
This is Rietveld 408576698