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

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

Issue 2382333003: Revert of Associate SuspendableTimer with frame's timer task queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 89e0ac1e81de685877fed5254e342abeab033cfd..537501572e5ca621fc7fa1e4bbc6cf549945233a 100644
--- a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
@@ -26,8 +26,6 @@
#include "core/frame/SuspendableTimer.h"
-#include "core/dom/TaskRunnerHelper.h"
-
namespace blink {
namespace {
@@ -36,7 +34,7 @@
}
SuspendableTimer::SuspendableTimer(ExecutionContext* context)
- : TimerBase(TaskRunnerHelper::get(TaskType::Timer, context))
+ : TimerBase(TimerBase::getTimerTaskRunner())
, ActiveDOMObject(context)
, m_nextFireInterval(kNextFireIntervalInvalid)
, m_repeatInterval(0)
@@ -44,7 +42,6 @@
, 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