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

Unified Diff: ipc/ipc_channel_win.cc

Issue 6060002: Revert 69694 - Add support for sockets that can listen and accept a connectio... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_message_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_win.cc
===================================================================
--- ipc/ipc_channel_win.cc (revision 69694)
+++ ipc/ipc_channel_win.cc (working copy)
@@ -106,22 +106,6 @@
waiting_connect_(mode == MODE_SERVER),
processing_incoming_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {
- switch(mode) {
- case MODE_NONE:
- LOG(FATAL) << "Bad mode for " << channel_handle.name;
- break;
- case MODE_SERVER:
- case MODE_CLIENT:
- break;
- case MODE_NAMED_SERVER:
- mode = MODE_SERVER;
- break;
- case MODE_NAMED_CLIENT:
- mode = MODE_CLIENT;
- break;
- // Intentionally no default case here so that the compiler
- // will check that we handle all the cases in the enum.
- }
if (!CreatePipe(channel_handle, mode)) {
// The pipe may have been closed already.
LOG(WARNING) << "Unable to create pipe named \"" << channel_handle.name <<
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698