Chromium Code Reviews| 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 |