| Index: ppapi/proxy/serialized_handle.cc
|
| diff --git a/ppapi/proxy/serialized_handle.cc b/ppapi/proxy/serialized_handle.cc
|
| index a59b27d7493bace48d17d3bb11c4d2902b4c1c0c..7d06c763b31c8a922fdd87dce146c7d4069cc2f7 100644
|
| --- a/ppapi/proxy/serialized_handle.cc
|
| +++ b/ppapi/proxy/serialized_handle.cc
|
| @@ -4,9 +4,9 @@
|
|
|
| #include "ppapi/proxy/serialized_handle.h"
|
|
|
| +#include "base/files/file.h"
|
| #include "base/memory/shared_memory.h"
|
| #include "base/pickle.h"
|
| -#include "base/platform_file.h"
|
| #include "build/build_config.h"
|
| #include "ipc/ipc_platform_file.h"
|
|
|
| @@ -81,13 +81,7 @@ void SerializedHandle::Close() {
|
| break;
|
| case SOCKET:
|
| case FILE:
|
| - base::PlatformFile file =
|
| - IPC::PlatformFileForTransitToPlatformFile(descriptor_);
|
| -#if !defined(OS_NACL)
|
| - base::ClosePlatformFile(file);
|
| -#else
|
| - close(file);
|
| -#endif
|
| + base::File file_closer = IPC::PlatformFileForTransitToFile(descriptor_);
|
| break;
|
| // No default so the compiler will warn us if a new type is added.
|
| }
|
|
|