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

Unified Diff: third_party/WebKit/Source/core/dom/StringCallback.cpp

Issue 2585073002: Specify TaskType of posted Task explicitly in DataTransferItem (1) (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
Index: third_party/WebKit/Source/core/dom/StringCallback.cpp
diff --git a/third_party/WebKit/Source/core/dom/StringCallback.cpp b/third_party/WebKit/Source/core/dom/StringCallback.cpp
index 5342a2879b963bb5c6d2258c96dee4342e359ebc..8bddd8f4dde63dee1a071ec9c4725e38d367559e 100644
--- a/third_party/WebKit/Source/core/dom/StringCallback.cpp
+++ b/third_party/WebKit/Source/core/dom/StringCallback.cpp
@@ -32,16 +32,18 @@
#include "core/dom/ExecutionContext.h"
#include "core/dom/ExecutionContextTask.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "public/platform/WebTraceLocation.h"
#include "wtf/text/WTFString.h"
namespace blink {
-void StringCallback::scheduleCallback(StringCallback* callback,
+void StringCallback::scheduleCallback(TaskType taskType,
+ StringCallback* callback,
ExecutionContext* context,
const String& data,
const String& instrumentationName) {
- context->postTask(BLINK_FROM_HERE,
+ context->postTask(taskType, BLINK_FROM_HERE,
createSameThreadTask(&StringCallback::handleEvent,
wrapPersistent(callback), data),
instrumentationName);

Powered by Google App Engine
This is Rietveld 408576698