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

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

Issue 2648433003: Convert PlatformEventController Timer to use Unspeced frame-based timer. (Closed)
Patch Set: Convert PlatformEventController Timer to use Unspeced frame-based timer. Created 3 years, 11 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 | « third_party/WebKit/Source/core/frame/PlatformEventController.h ('k') | 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/PlatformEventController.cpp
diff --git a/third_party/WebKit/Source/core/frame/PlatformEventController.cpp b/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
index e31fb2708c75ab873c60c816f614c370e1ffbf02..14980bb0d551a0eb49e3725a2d0d0571d10a92f9 100644
--- a/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
+++ b/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
@@ -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() {}
« no previous file with comments | « third_party/WebKit/Source/core/frame/PlatformEventController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698