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

Unified Diff: webkit/plugins/ppapi/ppb_file_ref_impl.cc

Issue 6543028: Implement the filesystem proxy. This allows the FileRef tests to pass in the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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: webkit/plugins/ppapi/ppb_file_ref_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_file_ref_impl.cc (revision 75471)
+++ webkit/plugins/ppapi/ppb_file_ref_impl.cc (working copy)
@@ -68,7 +68,7 @@
scoped_refptr<PPB_FileRef_Impl> file_ref(
Resource::GetAs<PPB_FileRef_Impl>(file_ref_id));
if (!file_ref)
- return PP_FILESYSTEMTYPE_EXTERNAL;
+ return PP_FILESYSTEMTYPE_NONE;
return file_ref->GetFileSystemType();
}
@@ -307,6 +307,8 @@
}
PP_FileSystemType_Dev PPB_FileRef_Impl::GetFileSystemType() const {
+ // When the file ref exists but there's no explicit filesystem object
+ // associated with it, that means it's an "external" filesystem.
if (!file_system_)
return PP_FILESYSTEMTYPE_EXTERNAL;

Powered by Google App Engine
This is Rietveld 408576698