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

Unified Diff: ppapi/proxy/serialized_handle.cc

Issue 304513007: Remove PlatformFile from ppapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/proxy/proxy_channel.cc ('k') | ppapi/shared_impl/file_type_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
}
« no previous file with comments | « ppapi/proxy/proxy_channel.cc ('k') | ppapi/shared_impl/file_type_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698