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

Unified Diff: ppapi/thunk/ppb_audio_input_dev_thunk.cc

Issue 14161017: Pepper: Simplify idl_thunk implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 8 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_audio_input_dev_thunk.cc
diff --git a/ppapi/thunk/ppb_audio_input_dev_thunk.cc b/ppapi/thunk/ppb_audio_input_dev_thunk.cc
index 9eb2e3c277a920e79abf26b4966a350dd50d4e38..2a787370a37233e240e8c3e52ec223069d03e52a 100644
--- a/ppapi/thunk/ppb_audio_input_dev_thunk.cc
+++ b/ppapi/thunk/ppb_audio_input_dev_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 dev/ppb_audio_input_dev.idl modified Thu Mar 28 11:12:59 2013.
+// From dev/ppb_audio_input_dev.idl modified Tue Apr 16 11:25:44 2013.
#include "ppapi/c/dev/ppb_audio_input_dev.h"
#include "ppapi/c/pp_completion_callback.h"
@@ -110,8 +110,9 @@ PP_Bool StopCapture(PP_Resource audio_input) {
void Close(PP_Resource audio_input) {
VLOG(4) << "PPB_AudioInput_Dev::Close()";
EnterResource<PPB_AudioInput_API> enter(audio_input, true);
- if (enter.succeeded())
- enter.object()->Close();
+ if (enter.failed())
+ return;
+ enter.object()->Close();
}
const PPB_AudioInput_Dev_0_2 g_ppb_audioinput_dev_thunk_0_2 = {

Powered by Google App Engine
This is Rietveld 408576698