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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLToken.h

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/HTMLToken.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLToken.h b/third_party/WebKit/Source/core/html/parser/HTMLToken.h
index 3c90de9d0e43e1797648b23f5abdb7d48e37c3d2..679a187e1d1a14bdd36a685985f7846369b99ad0 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLToken.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLToken.h
@@ -29,7 +29,8 @@
#include "core/dom/Attribute.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "wtf/Forward.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -199,7 +200,7 @@ public:
{
ASSERT(m_type == Uninitialized);
m_type = DOCTYPE;
- m_doctypeData = adoptPtr(new DoctypeData);
+ m_doctypeData = wrapUnique(new DoctypeData);
}
void beginDOCTYPE(UChar character)
@@ -254,7 +255,7 @@ public:
m_doctypeData->m_systemIdentifier.append(character);
}
- PassOwnPtr<DoctypeData> releaseDoctypeData()
+ std::unique_ptr<DoctypeData> releaseDoctypeData()
{
return std::move(m_doctypeData);
}
@@ -472,7 +473,7 @@ private:
Attribute* m_currentAttribute;
// For DOCTYPE
- OwnPtr<DoctypeData> m_doctypeData;
+ std::unique_ptr<DoctypeData> m_doctypeData;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698