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

Unified Diff: ppapi/thunk/ppb_directory_reader_thunk.cc

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ppapi/thunk/ppb_buffer_thunk.cc ('k') | ppapi/thunk/ppb_file_ref_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_directory_reader_thunk.cc
diff --git a/ppapi/thunk/ppb_directory_reader_thunk.cc b/ppapi/thunk/ppb_directory_reader_thunk.cc
index 369283ccc10511026b92a4599bb54df16a2f2ea9..eb5868454d7728a3798bb5ea1f62d8e00f1123a1 100644
--- a/ppapi/thunk/ppb_directory_reader_thunk.cc
+++ b/ppapi/thunk/ppb_directory_reader_thunk.cc
@@ -16,7 +16,11 @@ namespace thunk {
namespace {
PP_Resource Create(PP_Resource directory_ref) {
- EnterFunctionGivenResource<ResourceCreationAPI> enter(directory_ref, true);
+ Resource* object =
+ PpapiGlobals::Get()->GetResourceTracker()->GetResource(directory_ref);
+ if (!object)
+ return 0;
+ EnterResourceCreation enter(object->pp_instance());
if (enter.failed())
return 0;
return enter.functions()->CreateDirectoryReader(directory_ref);
« no previous file with comments | « ppapi/thunk/ppb_buffer_thunk.cc ('k') | ppapi/thunk/ppb_file_ref_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698