Index: mojo/edk/system/local_data_pipe_impl.cc |
diff --git a/mojo/edk/system/local_data_pipe_impl.cc b/mojo/edk/system/local_data_pipe_impl.cc |
index 553d012e25a5facfaf36a521cfbd4ee74c47b971..1d1f205f26ef192ee0559a609ccc15a90378ef81 100644 |
--- a/mojo/edk/system/local_data_pipe_impl.cc |
+++ b/mojo/edk/system/local_data_pipe_impl.cc |
@@ -182,8 +182,9 @@ bool LocalDataPipeImpl::ProducerEndSerialize( |
s->consumer_num_bytes = current_num_bytes_; |
// Note: We don't use |port|. |
RefPtr<ChannelEndpoint> channel_endpoint = |
- channel->SerializeEndpointWithLocalPeer(destination_for_endpoint, nullptr, |
- channel_endpoint_client(), 0); |
+ channel->SerializeEndpointWithLocalPeer( |
+ destination_for_endpoint, nullptr, |
+ RefPtr<ChannelEndpointClient>(channel_endpoint_client()), 0); |
// Note: Keep |*this| alive until the end of this method, to make things |
// slightly easier on ourselves. |
std::unique_ptr<DataPipeImpl> self( |
@@ -360,9 +361,9 @@ bool LocalDataPipeImpl::ConsumerEndSerialize( |
// Note: We don't use |port|. |
RefPtr<ChannelEndpoint> channel_endpoint = |
- channel->SerializeEndpointWithLocalPeer(destination_for_endpoint, |
- &message_queue, |
- channel_endpoint_client(), 0); |
+ channel->SerializeEndpointWithLocalPeer( |
+ destination_for_endpoint, &message_queue, |
+ RefPtr<ChannelEndpointClient>(channel_endpoint_client()), 0); |
// Note: Keep |*this| alive until the end of this method, to make things |
// slightly easier on ourselves. |
std::unique_ptr<DataPipeImpl> self( |