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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransferItem.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StringCallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp b/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
index 4059160b9b3b1d7a1ec66db61ed9e38f378c9ae2..bd4831775d2173d6988fd56586312c773b792729 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
@@ -34,6 +34,7 @@
#include "core/clipboard/DataObjectItem.h"
#include "core/clipboard/DataTransfer.h"
#include "core/dom/StringCallback.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "wtf/StdLibExtras.h"
namespace blink {
@@ -71,7 +72,8 @@ void DataTransferItem::getAsString(ExecutionContext* context,
if (!callback || m_item->kind() != DataObjectItem::StringKind)
return;
- StringCallback::scheduleCallback(callback, context, m_item->getAsString(),
+ StringCallback::scheduleCallback(TaskType::UserInteraction, callback, context,
haraken 2016/12/18 13:30:30 It looks like StringCallback is used only here. Ma
tzik 2016/12/18 21:44:26 Yes, we can. Let me do it in a separate CL.
+ m_item->getAsString(),
"DataTransferItem.getAsString");
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StringCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698