Index: third_party/WebKit/Source/core/dom/AXObjectCache.cpp |
diff --git a/third_party/WebKit/Source/core/dom/AXObjectCache.cpp b/third_party/WebKit/Source/core/dom/AXObjectCache.cpp |
index 373e1b7346ad6cebc93db1f6b8c56212235d9e1b..0051d5ee1b9d4e3b690d23aa5f6209d6a58e8a25 100644 |
--- a/third_party/WebKit/Source/core/dom/AXObjectCache.cpp |
+++ b/third_party/WebKit/Source/core/dom/AXObjectCache.cpp |
@@ -28,6 +28,9 @@ |
#include "core/dom/AXObjectCache.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
+ |
namespace blink { |
AXObjectCache::AXObjectCacheCreateFunction AXObjectCache::m_createFunction = nullptr; |
@@ -52,9 +55,9 @@ AXObjectCache::~AXObjectCache() |
{ |
} |
-PassOwnPtr<ScopedAXObjectCache> ScopedAXObjectCache::create(Document& document) |
+std::unique_ptr<ScopedAXObjectCache> ScopedAXObjectCache::create(Document& document) |
{ |
- return adoptPtr(new ScopedAXObjectCache(document)); |
+ return wrapUnique(new ScopedAXObjectCache(document)); |
} |
ScopedAXObjectCache::ScopedAXObjectCache(Document& document) |