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

Unified Diff: ppapi/proxy/ppb_url_loader_proxy.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
Index: ppapi/proxy/ppb_url_loader_proxy.cc
diff --git a/ppapi/proxy/ppb_url_loader_proxy.cc b/ppapi/proxy/ppb_url_loader_proxy.cc
index fbcfc1780372bd2db62c8045a1a426acc9c3a5cb..6538b58f16b5cfbfb6680472c5b311bb6d5010f5 100644
--- a/ppapi/proxy/ppb_url_loader_proxy.cc
+++ b/ppapi/proxy/ppb_url_loader_proxy.cc
@@ -340,11 +340,11 @@ void URLLoader::ReadResponseBodyAck(int32 result, const char* data) {
result = bytes_to_return;
}
- TrackedCallback::ClearAndRun(&current_callback_, result);
+ current_callback_->Run(result);
}
void URLLoader::CallbackComplete(int32_t result) {
- TrackedCallback::ClearAndRun(&current_callback_, result);
+ current_callback_->Run(result);
}
void URLLoader::PopBuffer(void* output_buffer, int32_t output_size) {

Powered by Google App Engine
This is Rietveld 408576698