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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2148363004: Use std::unique_ptr<> for WebTaskRunner::clone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 97f556b00fa12500fc81b1a3e9dfe714560efede..01d8cf824ef1d18fdd9e609d00219628c8a124f7 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -447,7 +447,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
, m_compositorPendingAnimations(new CompositorPendingAnimations())
, m_templateDocumentHost(nullptr)
, m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsTimerFired)
- , m_timers(TaskRunnerHelper::getTimerTaskRunner(this)->adoptClone())
+ , m_timers(TaskRunnerHelper::getTimerTaskRunner(this)->clone())
, m_hasViewportUnits(false)
, m_parserSyncPolicy(AllowAsynchronousParsing)
, m_nodeCount(0)
@@ -2232,7 +2232,7 @@ void Document::detach(const AttachContext& context)
}
m_timers.setTimerTaskRunner(
- Platform::current()->currentThread()->scheduler()->timerTaskRunner()->adoptClone());
+ Platform::current()->currentThread()->scheduler()->timerTaskRunner()->clone());
// This is required, as our LocalFrame might delete itself as soon as it detaches
// us. However, this violates Node::detach() semantics, as it's never

Powered by Google App Engine
This is Rietveld 408576698