Index: third_party/mojo/src/mojo/edk/system/ipc_support.cc |
diff --git a/third_party/mojo/src/mojo/edk/system/ipc_support.cc b/third_party/mojo/src/mojo/edk/system/ipc_support.cc |
index 7c4f3d45e288ff31558cfa3c6d2777cdf90f9677..424a130462ffed89b6066fea181bc6e16c09839f 100644 |
--- a/third_party/mojo/src/mojo/edk/system/ipc_support.cc |
+++ b/third_party/mojo/src/mojo/edk/system/ipc_support.cc |
@@ -141,9 +141,8 @@ |
system::ProcessIdentifier peer_id = system::kInvalidProcessIdentifier; |
embedder::ScopedPlatformHandle platform_connection_handle; |
- CHECK_EQ(connection_manager()->Connect(connection_id, &peer_id, |
- &platform_connection_handle), |
- ConnectionManager::Result::SUCCESS_CONNECT_NEW_CONNECTION); |
+ CHECK(connection_manager()->Connect(connection_id, &peer_id, |
+ &platform_connection_handle)); |
DCHECK_EQ(peer_id, *slave_process_identifier); |
DCHECK(platform_connection_handle.is_valid()); |
return platform_connection_handle; |
@@ -155,9 +154,8 @@ |
system::ProcessIdentifier peer_id; |
embedder::ScopedPlatformHandle platform_connection_handle; |
- CHECK_EQ(connection_manager()->Connect(connection_id, &peer_id, |
- &platform_connection_handle), |
- ConnectionManager::Result::SUCCESS_CONNECT_NEW_CONNECTION); |
+ CHECK(connection_manager()->Connect(connection_id, &peer_id, |
+ &platform_connection_handle)); |
DCHECK_EQ(peer_id, system::kMasterProcessIdentifier); |
DCHECK(platform_connection_handle.is_valid()); |
return platform_connection_handle; |