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

Unified Diff: ppapi/thunk/ppb_file_ref_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_file_ref_thunk.cc
diff --git a/ppapi/thunk/ppb_file_ref_thunk.cc b/ppapi/thunk/ppb_file_ref_thunk.cc
index 8752b7fb9b79f24261ac801a36b32703f9556005..d2a2a5336902c43c6f56ca60377f35831d685aaf 100644
--- a/ppapi/thunk/ppb_file_ref_thunk.cc
+++ b/ppapi/thunk/ppb_file_ref_thunk.cc
@@ -20,7 +20,11 @@ namespace {
typedef EnterResource<PPB_FileRef_API> EnterFileRef;
PP_Resource Create(PP_Resource file_system, const char* path) {
- EnterFunctionGivenResource<ResourceCreationAPI> enter(file_system, true);
+ Resource* object =
+ PpapiGlobals::Get()->GetResourceTracker()->GetResource(file_system);
+ if (!object)
+ return 0;
+ EnterResourceCreation enter(object->pp_instance());
if (enter.failed())
return 0;
return enter.functions()->CreateFileRef(file_system, path);

Powered by Google App Engine
This is Rietveld 408576698