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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 months 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/clipboard/DataTransferItem.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp b/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
index 46c47d0c697827a10e575837748fe0dca1ac33a1..87b91ded09d64de058f742bd44f9f45787cadafe 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransferItem.cpp
@@ -69,14 +69,14 @@ String DataTransferItem::type() const {
return m_item->type();
}
-void DataTransferItem::getAsString(ExecutionContext* context,
+void DataTransferItem::getAsString(ScriptState* scriptState,
StringCallback* callback) const {
if (!m_dataTransfer->canReadData())
return;
if (!callback || m_item->kind() != DataObjectItem::StringKind)
return;
- context->postTask(
+ scriptState->getExecutionContext()->postTask(
TaskType::UserInteraction, BLINK_FROM_HERE,
createSameThreadTask(&StringCallback::handleEvent,
wrapPersistent(callback), m_item->getAsString()),

Powered by Google App Engine
This is Rietveld 408576698