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

Unified Diff: third_party/WebKit/Source/platform/PODArena.h

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/platform/PODArena.h
diff --git a/third_party/WebKit/Source/platform/PODArena.h b/third_party/WebKit/Source/platform/PODArena.h
index d8ebf83701114a2e7ccfb648e3463338414d9b30..3250e7864136ed075db89b20311a759f3f751cf9 100644
--- a/third_party/WebKit/Source/platform/PODArena.h
+++ b/third_party/WebKit/Source/platform/PODArena.h
@@ -29,11 +29,11 @@
#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PtrUtil.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
#include "wtf/allocator/Partitions.h"
-#include <memory>
#include <stdint.h>
namespace blink {
@@ -132,7 +132,7 @@ protected:
if (!ptr) {
if (roundedSize > m_currentChunkSize)
m_currentChunkSize = roundedSize;
- m_chunks.append(wrapUnique(new Chunk(m_allocator.get(), m_currentChunkSize)));
+ m_chunks.append(adoptPtr(new Chunk(m_allocator.get(), m_currentChunkSize)));
m_current = m_chunks.last().get();
ptr = m_current->allocate(roundedSize);
}
@@ -194,7 +194,7 @@ protected:
RefPtr<Allocator> m_allocator;
Chunk* m_current;
size_t m_currentChunkSize;
- Vector<std::unique_ptr<Chunk>> m_chunks;
+ Vector<OwnPtr<Chunk>> m_chunks;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/EventTracer.cpp ('k') | third_party/WebKit/Source/platform/PurgeableVector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698