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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.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/HTMLParserScheduler.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
index ae7451459bbb18d2a936296e2167a66b8438f4ad..0d757cbc51d275394858c933aa07dcd8d64d2b10 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp
@@ -26,12 +26,13 @@
#include "core/html/parser/HTMLParserScheduler.h"
#include "core/dom/Document.h"
-#include "core/html/parser/HTMLDocumentParser.h"
#include "core/frame/FrameView.h"
+#include "core/html/parser/HTMLDocumentParser.h"
#include "public/platform/Platform.h"
#include "public/platform/WebScheduler.h"
#include "public/platform/WebThread.h"
#include "wtf/CurrentTime.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -67,7 +68,7 @@ void SpeculationsPumpSession::addedElementTokens(size_t count)
HTMLParserScheduler::HTMLParserScheduler(HTMLDocumentParser* parser, WebTaskRunner* loadingTaskRunner)
: m_parser(parser)
- , m_loadingTaskRunner(adoptPtr(loadingTaskRunner->clone()))
+ , m_loadingTaskRunner(wrapUnique(loadingTaskRunner->clone()))
, m_cancellableContinueParse(CancellableTaskFactory::create(this, &HTMLParserScheduler::continueParsing))
, m_isSuspendedWithActiveTimer(false)
{

Powered by Google App Engine
This is Rietveld 408576698