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

Unified Diff: trunk/src/ppapi/thunk/ppb_file_ref_thunk.cc

Issue 23647008: Revert 221284 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | « trunk/src/ppapi/thunk/ppb_file_ref_api.h ('k') | trunk/src/ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ppapi/thunk/ppb_file_ref_thunk.cc
===================================================================
--- trunk/src/ppapi/thunk/ppb_file_ref_thunk.cc (revision 221543)
+++ trunk/src/ppapi/thunk/ppb_file_ref_thunk.cc (working copy)
@@ -7,7 +7,6 @@
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/private/ppb_file_ref_private.h"
-#include "ppapi/shared_impl/file_ref_create_info.h"
#include "ppapi/shared_impl/proxy_lock.h"
#include "ppapi/shared_impl/tracked_callback.h"
#include "ppapi/thunk/enter.h"
@@ -33,13 +32,7 @@
EnterResourceCreationNoLock enter(instance);
if (enter.failed())
return 0;
- FileRefCreateInfo info;
- info.file_system_type = enter_file_system.object()->GetType();
- info.internal_path = std::string(path);
- info.browser_pending_host_resource_id = 0;
- info.renderer_pending_host_resource_id = 0;
- info.file_system_plugin_resource = file_system;
- return enter.functions()->CreateFileRef(instance, info);
+ return enter.functions()->CreateFileRef(instance, file_system, path);
}
PP_Bool IsFileRef(PP_Resource resource) {
« no previous file with comments | « trunk/src/ppapi/thunk/ppb_file_ref_api.h ('k') | trunk/src/ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698