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

Unified Diff: ppapi/proxy/ppb_flash_menu_proxy.cc

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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_flash_menu_proxy.cc
===================================================================
--- ppapi/proxy/ppb_flash_menu_proxy.cc (revision 88104)
+++ ppapi/proxy/ppb_flash_menu_proxy.cc (working copy)
@@ -7,6 +7,7 @@
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/private/ppb_flash_menu.h"
#include "ppapi/proxy/ppapi_messages.h"
+#include "ppapi/thunk/common.h"
namespace pp {
namespace proxy {
@@ -68,14 +69,14 @@
PP_CompletionCallback callback) {
FlashMenu* object = PluginResource::GetAs<FlashMenu>(menu_id);
if (!object)
- return PP_ERROR_BADRESOURCE;
+ return ppapi::thunk::MayForceCallback(callback, PP_ERROR_BADRESOURCE);
PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(
object->instance());
if (!dispatcher)
- return PP_ERROR_FAILED;
+ return ppapi::thunk::MayForceCallback(callback, PP_ERROR_FAILED);
if (object->callback().func)
- return PP_ERROR_INPROGRESS;
+ return ppapi::thunk::MayForceCallback(callback, PP_ERROR_INPROGRESS);
object->set_selected_id_ptr(selected_id);
object->set_callback(callback);

Powered by Google App Engine
This is Rietveld 408576698