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

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

Issue 2250553002: Associate SuspendableTimer with frame's timer task queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
diff --git a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
index 537501572e5ca621fc7fa1e4bbc6cf549945233a..89e0ac1e81de685877fed5254e342abeab033cfd 100644
--- a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
@@ -26,6 +26,8 @@
#include "core/frame/SuspendableTimer.h"
+#include "core/dom/TaskRunnerHelper.h"
+
namespace blink {
namespace {
@@ -34,7 +36,7 @@ const double kNextFireIntervalInvalid = -1.0;
}
SuspendableTimer::SuspendableTimer(ExecutionContext* context)
- : TimerBase(TimerBase::getTimerTaskRunner())
+ : TimerBase(TaskRunnerHelper::get(TaskType::Timer, context))
, ActiveDOMObject(context)
, m_nextFireInterval(kNextFireIntervalInvalid)
, m_repeatInterval(0)
@@ -42,6 +44,7 @@ SuspendableTimer::SuspendableTimer(ExecutionContext* context)
, m_suspended(false)
#endif
{
+ DCHECK(context);
}
SuspendableTimer::~SuspendableTimer()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698