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

Unified Diff: webkit/plugins/ppapi/ppb_url_loader_impl.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: 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
Index: webkit/plugins/ppapi/ppb_url_loader_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_url_loader_impl.cc b/webkit/plugins/ppapi/ppb_url_loader_impl.cc
index 625ce12bfde4a024563113ebf30381bbe5ed156c..4549131fd4b7cffe6bc53588c38505f02fcfdf47 100644
--- a/webkit/plugins/ppapi/ppb_url_loader_impl.cc
+++ b/webkit/plugins/ppapi/ppb_url_loader_impl.cc
@@ -430,7 +430,7 @@ void PPB_URLLoader_Impl::RunCallback(int32_t result) {
// If |user_buffer_| was set as part of registering the callback, ensure
// it got cleared since the callback is now free to delete it.
DCHECK(!user_buffer_);
- TrackedCallback::ClearAndRun(&pending_callback_, result);
+ pending_callback_->Run(result);
}
size_t PPB_URLLoader_Impl::FillUserBuffer() {

Powered by Google App Engine
This is Rietveld 408576698