| Index: content/common/pepper_file_util.cc
|
| diff --git a/content/common/pepper_file_util.cc b/content/common/pepper_file_util.cc
|
| index 6264faa5374422e65609de14913359318e0b66fa..4e5df94d705ce5c4853947c659cefcc0d0f9348d 100644
|
| --- a/content/common/pepper_file_util.cc
|
| +++ b/content/common/pepper_file_util.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "content/common/pepper_file_util.h"
|
| +#include "ppapi/shared_impl/platform_file.h"
|
|
|
| namespace content {
|
|
|
| @@ -22,13 +23,7 @@ storage::FileSystemType PepperFileSystemTypeToFileSystemType(
|
|
|
| int IntegerFromSyncSocketHandle(
|
| const base::SyncSocket::Handle& socket_handle) {
|
| -#if defined(OS_WIN)
|
| - return reinterpret_cast<int>(socket_handle);
|
| -#elif defined(OS_POSIX)
|
| - return socket_handle;
|
| -#else
|
| -#error Platform not supported.
|
| -#endif
|
| + return ppapi::PlatformFileToInt(socket_handle);
|
| }
|
|
|
| } // namespace content
|
|
|