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

Unified Diff: ppapi/thunk/ppb_input_event_thunk.cc

Issue 9113044: Convert to new enter method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove common.h Created 8 years, 11 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/thunk/ppb_input_event_thunk.cc
diff --git a/ppapi/thunk/ppb_input_event_thunk.cc b/ppapi/thunk/ppb_input_event_thunk.cc
index 50234615adbed2e18188acba6cc9b80b52c2b52d..388b011a68484fd54e11aed07e4ffc7447e09264 100644
--- a/ppapi/thunk/ppb_input_event_thunk.cc
+++ b/ppapi/thunk/ppb_input_event_thunk.cc
@@ -22,7 +22,7 @@ typedef EnterResource<PPB_InputEvent_API> EnterInputEvent;
int32_t RequestInputEvents(PP_Instance instance, uint32_t event_classes) {
EnterInstance enter(instance, true);
if (enter.failed())
- return PP_ERROR_BADARGUMENT;
+ return enter.retval();
return enter.functions()->RequestInputEvents(instance, event_classes);
}
@@ -30,7 +30,7 @@ int32_t RequestFilteringInputEvents(PP_Instance instance,
uint32_t event_classes) {
EnterInstance enter(instance, true);
if (enter.failed())
- return PP_ERROR_BADARGUMENT;
+ return enter.retval();
return enter.functions()->RequestFilteringInputEvents(instance,
event_classes);
}

Powered by Google App Engine
This is Rietveld 408576698