Index: third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h |
diff --git a/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h b/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h |
index e6fa7a25fd2aaf1667b8e882e3640b9d97261371..71a01ca6be45af94cc0e1c1e9fde8a8966647af0 100644 |
--- a/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h |
+++ b/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h |
@@ -30,6 +30,9 @@ |
#include "public/platform/WebScrollbar.h" |
#include "wtf/Allocator.h" |
#include "wtf/Noncopyable.h" |
+#include "wtf/PtrUtil.h" |
+ |
+#include <memory> |
namespace blink { |
@@ -39,8 +42,8 @@ class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar { |
WTF_MAKE_NONCOPYABLE(WebScrollbarImpl); |
public: |
- static WebScrollbarImpl* create(Scrollbar* scrollbar) { |
- return new WebScrollbarImpl(scrollbar); |
+ static std::unique_ptr<WebScrollbarImpl> create(Scrollbar* scrollbar) { |
+ return wrapUnique(new WebScrollbarImpl(scrollbar)); |
} |
// Implement WebScrollbar methods |