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

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: Patch for landing 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
« no previous file with comments | « Source/core/platform/chromium/ChromiumDataObjectItem.h ('k') | Source/modules/geolocation/Geolocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/ChromiumDataObjectItem.cpp
diff --git a/Source/core/platform/chromium/ChromiumDataObjectItem.cpp b/Source/core/platform/chromium/ChromiumDataObjectItem.cpp
index 51e2416605c8e7ec0321fbb5780216b063eaffbd..980a5db43709229233ca973203de365afcf1a276 100644
--- a/Source/core/platform/chromium/ChromiumDataObjectItem.cpp
+++ b/Source/core/platform/chromium/ChromiumDataObjectItem.cpp
@@ -102,12 +102,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
« no previous file with comments | « Source/core/platform/chromium/ChromiumDataObjectItem.h ('k') | Source/modules/geolocation/Geolocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698