From 6060b10c0db5aab66ed98323a79b239a2df0119b Mon Sep 17 00:00:00 2001
From: "wez@chromium.org"
 <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Sat, 31 Mar 2012 04:24:21 +0000
Subject: Check explicitly for version 1.0 PPB_File* interfaces in pp::File*
 wrappers.

BUG=107398


Review URL: http://codereview.chromium.org/9712001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130042 0039d316-1c4b-4281-b951-d872f2087c98
---
 ppapi/cpp/file_system.cc | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'ppapi/cpp/file_system.cc')

diff --git a/ppapi/cpp/file_system.cc b/ppapi/cpp/file_system.cc
index 1f2aaa6..022288c 100644
--- a/ppapi/cpp/file_system.cc
+++ b/ppapi/cpp/file_system.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -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());
 }
 
-- 
cgit v1.1