| Index: third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| diff --git a/third_party/WebKit/Source/modules/notifications/Notification.cpp b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| index 7d110ddc04fd3142cd5082837d45487706b05462..73f85c47a6a31b6bfc53c52291afcbfed1c72740 100644
|
| --- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| +++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| @@ -37,7 +37,6 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/DocumentUserGestureToken.h"
|
| #include "core/dom/ExecutionContext.h"
|
| -#include "core/dom/ExecutionContextTask.h"
|
| #include "core/dom/ScopedWindowFocusAllowedIndicator.h"
|
| #include "core/dom/TaskRunnerHelper.h"
|
| #include "core/events/Event.h"
|
| @@ -185,10 +184,9 @@ void Notification::close() {
|
| // Schedule the "close" event to be fired for non-persistent notifications.
|
| // Persistent notifications won't get such events for programmatic closes.
|
| if (m_type == Type::NonPersistent) {
|
| - getExecutionContext()->postTask(
|
| - TaskType::UserInteraction, BLINK_FROM_HERE,
|
| - createSameThreadTask(&Notification::dispatchCloseEvent,
|
| - wrapPersistent(this)));
|
| + TaskRunnerHelper::get(TaskType::UserInteraction, getExecutionContext())
|
| + ->postTask(BLINK_FROM_HERE, WTF::bind(&Notification::dispatchCloseEvent,
|
| + wrapPersistent(this)));
|
| m_state = State::Closing;
|
|
|
| notificationManager()->close(this);
|
|
|