Commit 084fdb4f authored by joelhockey's avatar joelhockey Committed by Commit bot

Convert PlatformEventController Timer to use Unspeced frame-based timer.

BUG=624694

Review-Url: https://codereview.chromium.org/2648433003
Cr-Commit-Position: refs/heads/master@{#447883}
parent 13778fbf
......@@ -12,7 +12,9 @@ PlatformEventController::PlatformEventController(LocalFrame* frame)
: PageVisibilityObserver(frame ? frame->page() : nullptr),
m_hasEventListener(false),
m_isActive(false),
m_timer(this, &PlatformEventController::oneShotCallback) {}
m_timer(TaskRunnerHelper::get(TaskType::UnspecedTimer, frame),
this,
&PlatformEventController::oneShotCallback) {}
PlatformEventController::~PlatformEventController() {}
......
......@@ -6,6 +6,7 @@
#define PlatformEventController_h
#include "core/CoreExport.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/page/PageVisibilityObserver.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
......@@ -44,7 +45,7 @@ class CORE_EXPORT PlatformEventController : public PageVisibilityObserver {
void oneShotCallback(TimerBase*);
bool m_isActive;
Timer<PlatformEventController> m_timer;
TaskRunnerTimer<PlatformEventController> m_timer;
};
} // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment