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

Unified Diff: ipc/ipc_platform_file.h

Issue 505022: Convert a crash to a NOTREACHED. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
Index: ipc/ipc_platform_file.h
===================================================================
--- ipc/ipc_platform_file.h (revision 34757)
+++ ipc/ipc_platform_file.h (working copy)
@@ -21,6 +21,14 @@
typedef base::FileDescriptor PlatformFileForTransit;
#endif
+inline PlatformFileForTransit InvalidPlatformFileForTransit() {
+#if defined(OS_WIN)
+ return base::kInvalidPlatformFileValue;
+#elif defined(OS_POSIX)
+ return base::FileDescriptor();
+#endif
+}
+
inline base::PlatformFile PlatformFileForTransitToPlatformFile(
const PlatformFileForTransit& transit) {
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698