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

Unified Diff: mojo/edk/embedder/platform_channel_pair_posix.cc

Issue 1585493002: [mojo] Ports EDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: mojo/edk/embedder/platform_channel_pair_posix.cc
diff --git a/mojo/edk/embedder/platform_channel_pair_posix.cc b/mojo/edk/embedder/platform_channel_pair_posix.cc
index 561b78998f5b2bc99b05257b978561057dedb340..9c3883922fdb004d3ba0a6f11628f71835818953 100644
--- a/mojo/edk/embedder/platform_channel_pair_posix.cc
+++ b/mojo/edk/embedder/platform_channel_pair_posix.cc
@@ -49,14 +49,6 @@ PlatformChannelPair::PlatformChannelPair(bool client_is_blocking) {
PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0);
- // Store a common id in the SO_PEEK_OFF option (which we don't use since we
- // don't peek) as a way of determining later if two sockets are connected to
- // each other.
- int identifier = base::RandInt(std::numeric_limits<int32_t>::min(),
- std::numeric_limits<int32_t>::max());
- setsockopt(fds[0], SOL_SOCKET, SO_PEEK_OFF, &identifier, sizeof(identifier));
- setsockopt(fds[1], SOL_SOCKET, SO_PEEK_OFF, &identifier, sizeof(identifier));
-
// Set the ends to nonblocking.
PCHECK(fcntl(fds[0], F_SETFL, O_NONBLOCK) == 0);
if (!client_is_blocking)

Powered by Google App Engine
This is Rietveld 408576698