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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp

Issue 2587723002: Specify TaskType of posted Task explicitly in Presentation API (10) (Closed)
Patch Set: Created 4 years 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/dom/TaskRunnerHelper.cpp ('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/presentation/PresentationConnection.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
index 1d26327369b935b219d1d516bde12cae552b33ac..9481b5e19e88a4b15b6bf1500f7aa9027d235fda 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -10,6 +10,7 @@
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContextTask.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/events/MessageEvent.h"
#include "core/fileapi/FileReaderLoader.h"
@@ -197,7 +198,7 @@ PresentationConnection* PresentationConnection::take(
auto* event = PresentationConnectionAvailableEvent::create(
EventTypeNames::connectionavailable, connection);
request->getExecutionContext()->postTask(
- BLINK_FROM_HERE,
+ TaskType::Presentation, BLINK_FROM_HERE,
createSameThreadTask(&PresentationConnection::dispatchEventAsync,
wrapPersistent(request), wrapPersistent(event)));
@@ -473,7 +474,7 @@ void PresentationConnection::didFailLoadingBlob(
void PresentationConnection::dispatchStateChangeEvent(Event* event) {
getExecutionContext()->postTask(
- BLINK_FROM_HERE,
+ TaskType::Presentation, BLINK_FROM_HERE,
createSameThreadTask(&PresentationConnection::dispatchEventAsync,
wrapPersistent(this), wrapPersistent(event)));
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698