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

Unified Diff: ppapi/cpp/file_system.cc

Issue 9712001: Check explicitly for version 1.0 PPB_File* interfaces in pp::File* wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missed interface_name definitions. Created 8 years, 9 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/cpp/file_ref.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/file_system.cc
diff --git a/ppapi/cpp/file_system.cc b/ppapi/cpp/file_system.cc
index 1f2aaa6ee69f3676d0a1a2e04e7b26dacd95b72f..3ca0bfffc9c965be260dc9bf9f83871a5ad33c3f 100644
--- a/ppapi/cpp/file_system.cc
+++ b/ppapi/cpp/file_system.cc
@@ -16,8 +16,8 @@ namespace pp {
namespace {
-template <> const char* interface_name<PPB_FileSystem>() {
- return PPB_FILESYSTEM_INTERFACE;
+template <> const char* interface_name<PPB_FileSystem_1_0>() {
+ return PPB_FILESYSTEM_INTERFACE_1_0;
}
} // namespace
@@ -27,17 +27,17 @@ FileSystem::FileSystem() {
FileSystem::FileSystem(const InstanceHandle& instance,
PP_FileSystemType type) {
- if (!has_interface<PPB_FileSystem>())
+ if (!has_interface<PPB_FileSystem_1_0>())
return;
- PassRefFromConstructor(get_interface<PPB_FileSystem>()->Create(
+ PassRefFromConstructor(get_interface<PPB_FileSystem_1_0>()->Create(
instance.pp_instance(), type));
}
int32_t FileSystem::Open(int64_t expected_size,
const CompletionCallback& cc) {
- if (!has_interface<PPB_FileSystem>())
+ if (!has_interface<PPB_FileSystem_1_0>())
return cc.MayForce(PP_ERROR_NOINTERFACE);
- return get_interface<PPB_FileSystem>()->Open(
+ return get_interface<PPB_FileSystem_1_0>()->Open(
pp_resource(), expected_size, cc.pp_completion_callback());
}
« no previous file with comments | « ppapi/cpp/file_ref.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698