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

Unified Diff: ppapi/shared_impl/ppb_audio_input_shared.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 | « ppapi/proxy/websocket_resource.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_audio_input_shared.cc
diff --git a/ppapi/shared_impl/ppb_audio_input_shared.cc b/ppapi/shared_impl/ppb_audio_input_shared.cc
index 4ea3e71f0ed1352090a079472dd0727d1293a38f..0814883ea360f10b22767d83d39cee6e364382a6 100644
--- a/ppapi/shared_impl/ppb_audio_input_shared.cc
+++ b/ppapi/shared_impl/ppb_audio_input_shared.cc
@@ -140,7 +140,7 @@ void PPB_AudioInput_Shared::OnEnumerateDevicesComplete(
}
devices_ = NULL;
- TrackedCallback::ClearAndRun(&enumerate_devices_callback_, result);
+ enumerate_devices_callback_->Run(result);
}
void PPB_AudioInput_Shared::OnOpenComplete(
@@ -160,7 +160,7 @@ void PPB_AudioInput_Shared::OnOpenComplete(
// The callback may have been aborted by Close().
if (TrackedCallback::IsPending(open_callback_))
- TrackedCallback::ClearAndRun(&open_callback_, result);
+ open_callback_->Run(result);
}
// static
« no previous file with comments | « ppapi/proxy/websocket_resource.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698