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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp

Issue 2642923005: Migrate Timer to TaskRunnerTimer in ScreenOrientationControllerImpl (Closed)
Patch Set: Migrate Timer to TaskRunnerTimer in ScreenOrientationControllerImpl 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/modules/screen_orientation/ScreenOrientationControllerImpl.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/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
index a8ec2c09c38cb9a6262f3ace184b7bc115b8e99a..b3f4e3e35399c9e6540102a8e9e803e4525e4e62 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
@@ -5,6 +5,7 @@
#include "modules/screen_orientation/ScreenOrientationControllerImpl.h"
#include "core/dom/Document.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
@@ -45,6 +46,7 @@ ScreenOrientationControllerImpl::ScreenOrientationControllerImpl(
PlatformEventController(frame.page()),
m_client(client),
m_dispatchEventTimer(
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, &frame),
this,
&ScreenOrientationControllerImpl::dispatchEventTimerFired) {}
« no previous file with comments | « third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698