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

Unified Diff: ppapi/proxy/file_chooser_resource.cc

Issue 10909244: PPAPI: Get TrackedCallback ready for running on non-main threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 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
« no previous file with comments | « no previous file | ppapi/proxy/flash_device_id_resource.cc » ('j') | ppapi/shared_impl/tracked_callback.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/file_chooser_resource.cc
diff --git a/ppapi/proxy/file_chooser_resource.cc b/ppapi/proxy/file_chooser_resource.cc
index 87d11285e1d1b1323370c53bf7ff14f34d849fdd..4333bfdbe9c485c47b4ce46ac026c9a7ada5b46e 100644
--- a/ppapi/proxy/file_chooser_resource.cc
+++ b/ppapi/proxy/file_chooser_resource.cc
@@ -126,7 +126,7 @@ void FileChooserResource::OnPluginMsgShowReply(
}
// Notify the plugin of the new data.
- TrackedCallback::ClearAndRun(&callback_, params.result());
+ callback_->Run(params.result());
viettrungluu 2012/09/25 00:18:11 I don't see how you can leave the value of |callba
dmichael (off chromium) 2012/10/24 21:40:52 IsPending(callback_) will return false if: callbac
// DANGER: May delete |this|!
}
« no previous file with comments | « no previous file | ppapi/proxy/flash_device_id_resource.cc » ('j') | ppapi/shared_impl/tracked_callback.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698