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

Unified Diff: webkit/plugins/ppapi/ppb_broker_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: Merged. Created 8 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 | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppb_flash_menu_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_broker_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_broker_impl.cc b/webkit/plugins/ppapi/ppb_broker_impl.cc
index 49342fcae55e1700b6a417591905cfc5ab9d4fa8..e8063f1f5b80fef15b5ff01c0e8319045a8fe563 100644
--- a/webkit/plugins/ppapi/ppb_broker_impl.cc
+++ b/webkit/plugins/ppapi/ppb_broker_impl.cc
@@ -64,7 +64,7 @@ int32_t PPB_Broker_Impl::Connect(
broker_ = plugin_instance->delegate()->ConnectToBroker(this);
if (!broker_) {
- TrackedCallback::ClearAndAbort(&connect_callback_);
+ connect_callback_->Abort();
return PP_ERROR_FAILED;
}
@@ -95,7 +95,7 @@ void PPB_Broker_Impl::BrokerConnected(int32_t handle, int32_t result) {
// Synchronous calls are not supported.
DCHECK(TrackedCallback::IsPending(connect_callback_));
- TrackedCallback::ClearAndRun(&connect_callback_, result);
+ connect_callback_->Run(result);
}
} // namespace ppapi
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppb_flash_menu_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698