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

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
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);
brettw 2012/04/21 19:50:01 I also deleted EnterFunctionGivenResource since it
+ 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);

Powered by Google App Engine
This is Rietveld 408576698