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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: mac fix Created 4 years 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/frame/DOMTimerCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
index cb039a522c2788c218ed6f30ce7e94eb80737db4..7b5c0f19987f5869d025aef7c8a79d0786bb1b4d 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
@@ -11,8 +11,7 @@
namespace blink {
-DOMTimerCoordinator::DOMTimerCoordinator(
- std::unique_ptr<WebTaskRunner> timerTaskRunner)
+DOMTimerCoordinator::DOMTimerCoordinator(RefPtr<WebTaskRunner> timerTaskRunner)
: m_circularSequentialID(0),
m_timerNestingLevel(0),
m_timerTaskRunner(std::move(timerTaskRunner)) {}
@@ -67,7 +66,7 @@ int DOMTimerCoordinator::nextID() {
}
void DOMTimerCoordinator::setTimerTaskRunner(
- std::unique_ptr<WebTaskRunner> timerTaskRunner) {
+ RefPtr<WebTaskRunner> timerTaskRunner) {
m_timerTaskRunner = std::move(timerTaskRunner);
}

Powered by Google App Engine
This is Rietveld 408576698