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

Unified Diff: ppapi/thunk/ppb_mouse_lock_thunk.cc

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « ppapi/thunk/ppb_ext_crx_file_system_private_thunk.cc ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_mouse_lock_thunk.cc
diff --git a/ppapi/thunk/ppb_mouse_lock_thunk.cc b/ppapi/thunk/ppb_mouse_lock_thunk.cc
index bd1a193131b1248b1fe53ed1a5aef9b8782ef938..d9bfa2d635ea0bfebfc781273aa84f6480797ef1 100644
--- a/ppapi/thunk/ppb_mouse_lock_thunk.cc
+++ b/ppapi/thunk/ppb_mouse_lock_thunk.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// From ppb_mouse_lock.idl modified Thu Apr 18 10:43:11 2013.
+// From ppb_mouse_lock.idl modified Mon May 6 13:58:10 2013.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -30,8 +30,9 @@ int32_t LockMouse(PP_Instance instance, struct PP_CompletionCallback callback) {
void UnlockMouse(PP_Instance instance) {
VLOG(4) << "PPB_MouseLock::UnlockMouse()";
EnterInstance enter(instance);
- if (enter.succeeded())
- enter.functions()->UnlockMouse(instance);
+ if (enter.failed())
+ return;
+ enter.functions()->UnlockMouse(instance);
}
const PPB_MouseLock_1_0 g_ppb_mouselock_thunk_1_0 = {
« no previous file with comments | « ppapi/thunk/ppb_ext_crx_file_system_private_thunk.cc ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698