| Index: webkit/plugins/ppapi/ppb_file_io_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_file_io_impl.cc (revision 72915)
|
| +++ webkit/plugins/ppapi/ppb_file_io_impl.cc (working copy)
|
| @@ -276,7 +276,7 @@
|
| DCHECK(!info_); // If |info_|, a callback should be pending (caught above).
|
| info_ = info;
|
|
|
| - if (!base::FileUtilProxy::GetFileInfoFromPlatformFile(
|
| + if (!base::FileUtilProxy::GetInstance()->GetFileInfoFromPlatformFile(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(), file_,
|
| callback_factory_.NewCallback(&PPB_FileIO_Impl::QueryInfoCallback)))
|
| return PP_ERROR_FAILED;
|
| @@ -292,7 +292,7 @@
|
| if (rv != PP_OK)
|
| return rv;
|
|
|
| - if (!base::FileUtilProxy::Touch(
|
| + if (!base::FileUtilProxy::GetInstance()->Touch(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(),
|
| file_, base::Time::FromDoubleT(last_access_time),
|
| base::Time::FromDoubleT(last_modified_time),
|
| @@ -311,7 +311,7 @@
|
| if (rv != PP_OK)
|
| return rv;
|
|
|
| - if (!base::FileUtilProxy::Read(
|
| + if (!base::FileUtilProxy::GetInstance()->Read(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(),
|
| file_, offset, buffer, bytes_to_read,
|
| callback_factory_.NewCallback(&PPB_FileIO_Impl::ReadWriteCallback)))
|
| @@ -329,7 +329,7 @@
|
| if (rv != PP_OK)
|
| return rv;
|
|
|
| - if (!base::FileUtilProxy::Write(
|
| + if (!base::FileUtilProxy::GetInstance()->Write(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(),
|
| file_, offset, buffer, bytes_to_write,
|
| callback_factory_.NewCallback(&PPB_FileIO_Impl::ReadWriteCallback)))
|
| @@ -345,7 +345,7 @@
|
| if (rv != PP_OK)
|
| return rv;
|
|
|
| - if (!base::FileUtilProxy::Truncate(
|
| + if (!base::FileUtilProxy::GetInstance()->Truncate(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(),
|
| file_, length,
|
| callback_factory_.NewCallback(&PPB_FileIO_Impl::StatusCallback)))
|
| @@ -360,7 +360,7 @@
|
| if (rv != PP_OK)
|
| return rv;
|
|
|
| - if (!base::FileUtilProxy::Flush(
|
| + if (!base::FileUtilProxy::GetInstance()->Flush(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(), file_,
|
| callback_factory_.NewCallback(&PPB_FileIO_Impl::StatusCallback)))
|
| return PP_ERROR_FAILED;
|
| @@ -371,7 +371,7 @@
|
|
|
| void PPB_FileIO_Impl::Close() {
|
| if (file_ != base::kInvalidPlatformFileValue) {
|
| - base::FileUtilProxy::Close(
|
| + base::FileUtilProxy::GetInstance()->Close(
|
| instance()->delegate()->GetFileThreadMessageLoopProxy(), file_, NULL);
|
| file_ = base::kInvalidPlatformFileValue;
|
| }
|
|
|