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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollState.h

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/ScrollState.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollState.h b/third_party/WebKit/Source/core/page/scrolling/ScrollState.h
index 050ee6b46e2ed4a6487ce38972c8641e7d5aad0c..65f164d9db4e0131cb47be32cbee585b497fb954 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollState.h
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollState.h
@@ -12,6 +12,7 @@
#include "platform/scroll/ScrollStateData.h"
#include "wtf/Forward.h"
#include <deque>
+#include <memory>
namespace blink {
@@ -22,7 +23,7 @@ class CORE_EXPORT ScrollState final : public GarbageCollectedFinalized<ScrollSta
public:
static ScrollState* create(ScrollStateInit);
- static ScrollState* create(PassOwnPtr<ScrollStateData>);
+ static ScrollState* create(std::unique_ptr<ScrollStateData>);
~ScrollState()
{
@@ -92,9 +93,9 @@ public:
private:
ScrollState();
- explicit ScrollState(PassOwnPtr<ScrollStateData>);
+ explicit ScrollState(std::unique_ptr<ScrollStateData>);
- OwnPtr<ScrollStateData> m_data;
+ std::unique_ptr<ScrollStateData> m_data;
std::deque<int> m_scrollChain;
};

Powered by Google App Engine
This is Rietveld 408576698