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

Unified Diff: Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 1088473002: Refactor ScopedAXObjectCache to remove ref count (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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: Source/modules/accessibility/AXObjectCacheImpl.cpp
diff --git a/Source/modules/accessibility/AXObjectCacheImpl.cpp b/Source/modules/accessibility/AXObjectCacheImpl.cpp
index 5c1f2c5c0f1e29f6a3687d519c9162e45cf06f3b..8f81924cd4f19c9feb9dadf1e4aaa64d6e0b3383 100644
--- a/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -85,9 +85,9 @@ namespace blink {
using namespace HTMLNames;
// static
-AXObjectCache* AXObjectCacheImpl::create(Document& document)
+PassOwnPtr<AXObjectCache> AXObjectCacheImpl::create(Document& document)
{
- return new AXObjectCacheImpl(document);
+ return adoptPtr(new AXObjectCacheImpl(document));
}
AXObjectCacheImpl::AXObjectCacheImpl(Document& document)

Powered by Google App Engine
This is Rietveld 408576698