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