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

Unified Diff: ipc/ipc_channel_handle.h

Issue 5598010: Convert over to channel handles (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed up bad whitespace Created 10 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_channel_handle.h
diff --git a/ipc/ipc_channel_handle.h b/ipc/ipc_channel_handle.h
index dc6957f547d203477031939a90953cd10417be14..eed121be56cc354c019ad0115954593d2b4e98c1 100644
--- a/ipc/ipc_channel_handle.h
+++ b/ipc/ipc_channel_handle.h
@@ -32,15 +32,15 @@ struct ChannelHandle {
std::string name;
#if defined(OS_POSIX)
base::FileDescriptor socket;
-#endif
+#endif // defined(OS_POSIX)
ChannelHandle() {}
agl 2010/12/08 15:38:57 Constructors are typically first in a class/struct
#if defined(OS_POSIX)
ChannelHandle(const std::string& n, const base::FileDescriptor& s)
: name(n), socket(s) {}
-#else
+#endif // defined(OS_POSIX)
ChannelHandle(const std::string& n) : name(n) {}
-#endif
+ ChannelHandle(const char* n) : name(n) {}
};
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698