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

Unified Diff: third_party/WebKit/Source/core/loader/TextTrackLoader.cpp

Issue 2646443012: Migrate Timer to TaskRunnerTimer in TextTrackLoader (Closed)
Patch Set: Migrate Timer to TaskRunnerTimer in TextTrackLoader 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/loader/TextTrackLoader.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/loader/TextTrackLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp b/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp
index 05bb3c939a9ae0c9b32cd62d8510d7ac323bce4f..4cb33998cb1406c101783a23ddd71c29ea492533 100644
--- a/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/TextTrackLoader.cpp
@@ -26,6 +26,7 @@
#include "core/loader/TextTrackLoader.h"
#include "core/dom/Document.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/fetch/FetchInitiatorTypeNames.h"
#include "core/fetch/FetchRequest.h"
#include "core/fetch/RawResource.h"
@@ -40,7 +41,9 @@ TextTrackLoader::TextTrackLoader(TextTrackLoaderClient& client,
Document& document)
: m_client(client),
m_document(document),
- m_cueLoadTimer(this, &TextTrackLoader::cueLoadTimerFired),
+ m_cueLoadTimer(TaskRunnerHelper::get(TaskType::Networking, &document),
+ this,
+ &TextTrackLoader::cueLoadTimerFired),
m_state(Idle),
m_newCuesAvailable(false) {}
« no previous file with comments | « third_party/WebKit/Source/core/loader/TextTrackLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698