| Index: third_party/WebKit/Source/modules/eventsource/EventSource.cpp
|
| diff --git a/third_party/WebKit/Source/modules/eventsource/EventSource.cpp b/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
|
| index f8be89b6d3258f264bb2e96644a08d67a67558f2..42a874076880a90f7f8b8dd1a8541670be1fd28a 100644
|
| --- a/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
|
| +++ b/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
|
| @@ -39,6 +39,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/ExecutionContext.h"
|
| +#include "core/dom/TaskRunnerHelper.h"
|
| #include "core/events/Event.h"
|
| #include "core/events/MessageEvent.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| @@ -70,7 +71,9 @@ inline EventSource::EventSource(ExecutionContext* context,
|
| m_currentURL(url),
|
| m_withCredentials(eventSourceInit.withCredentials()),
|
| m_state(kConnecting),
|
| - m_connectTimer(this, &EventSource::connectTimerFired),
|
| + m_connectTimer(TaskRunnerHelper::get(TaskType::RemoteEvent, context),
|
| + this,
|
| + &EventSource::connectTimerFired),
|
| m_reconnectDelay(defaultReconnectDelay) {}
|
|
|
| EventSource* EventSource::create(ExecutionContext* context,
|
|
|