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

Unified Diff: Source/core/platform/chromium/ChromiumDataObjectItem.cpp

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refinements Created 7 years, 1 month 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: Source/core/platform/chromium/ChromiumDataObjectItem.cpp
diff --git a/Source/core/platform/chromium/ChromiumDataObjectItem.cpp b/Source/core/platform/chromium/ChromiumDataObjectItem.cpp
index 321226c1c33057a3af58bf592d1317fb26ab9c1b..3527a40d42cbf93daf439d6fc07e65c4c25f9463 100644
--- a/Source/core/platform/chromium/ChromiumDataObjectItem.cpp
+++ b/Source/core/platform/chromium/ChromiumDataObjectItem.cpp
@@ -104,12 +104,12 @@ ChromiumDataObjectItem::ChromiumDataObjectItem(const String& kind, const String&
{
}
-void ChromiumDataObjectItem::getAsString(PassRefPtr<StringCallback> callback, ExecutionContext* context) const
+void ChromiumDataObjectItem::getAsString(PassOwnPtr<StringCallback> callback, ExecutionContext* context) const
{
if (!callback || kind() != DataTransferItem::kindString)
return;
- callback->scheduleCallback(context, internalGetAsString());
+ StringCallback::scheduleCallback(callback, context, internalGetAsString());
}
PassRefPtr<Blob> ChromiumDataObjectItem::getAsFile() const

Powered by Google App Engine
This is Rietveld 408576698