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

Unified Diff: third_party/WebKit/Source/core/dom/AXObjectCache.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/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)
« no previous file with comments | « third_party/WebKit/Source/core/dom/AXObjectCache.h ('k') | third_party/WebKit/Source/core/dom/ActiveDOMObjectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698