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

Unified Diff: third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.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/html/parser/ParsedChunkQueue.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp
index 263c9a9719085e123cb4b284932ce9686b1625fa..913e2b040a9882cd9d7da47efaa91522a8e13cb4 100644
--- a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp
+++ b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp
@@ -4,6 +4,8 @@
#include "core/html/parser/ParsedChunkQueue.h"
+#include <memory>
+
namespace blink {
ParsedChunkQueue::ParsedChunkQueue()
@@ -14,7 +16,7 @@ ParsedChunkQueue::~ParsedChunkQueue()
{
}
-bool ParsedChunkQueue::enqueue(PassOwnPtr<HTMLDocumentParser::ParsedChunk> chunk)
+bool ParsedChunkQueue::enqueue(std::unique_ptr<HTMLDocumentParser::ParsedChunk> chunk)
{
MutexLocker locker(m_mutex);
@@ -30,7 +32,7 @@ void ParsedChunkQueue::clear()
m_pendingChunks.clear();
}
-void ParsedChunkQueue::takeAll(Vector<OwnPtr<HTMLDocumentParser::ParsedChunk>>& vector)
+void ParsedChunkQueue::takeAll(Vector<std::unique_ptr<HTMLDocumentParser::ParsedChunk>>& vector)
{
MutexLocker locker(m_mutex);

Powered by Google App Engine
This is Rietveld 408576698