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

Unified Diff: mojo/edk/system/ipc_support_unittest.cc

Issue 1396783004: Convert mojo::system::ChannelEndpointClient to use our new refcounting stuff (instead of base's). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « mojo/edk/system/incoming_endpoint.cc ('k') | mojo/edk/system/local_data_pipe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ipc_support_unittest.cc
diff --git a/mojo/edk/system/ipc_support_unittest.cc b/mojo/edk/system/ipc_support_unittest.cc
index 11800d4117d9d25bf8083f6b92c529e833b89fe7..838c4cef2ee8b074e651981c34c5ac96b6dc85f6 100644
--- a/mojo/edk/system/ipc_support_unittest.cc
+++ b/mojo/edk/system/ipc_support_unittest.cc
@@ -424,9 +424,9 @@ MessagePipeDispatcherPair CreateMessagePipe() {
MessagePipeDispatcher::kDefaultCreateOptions);
rv.second = MessagePipeDispatcher::Create(
MessagePipeDispatcher::kDefaultCreateOptions);
- scoped_refptr<MessagePipe> mp(MessagePipe::CreateLocalLocal());
- rv.first->Init(mp, 0);
- rv.second->Init(mp, 1);
+ auto mp = MessagePipe::CreateLocalLocal();
+ rv.first->Init(mp.Clone(), 0);
+ rv.second->Init(std::move(mp), 1);
return rv;
}
« no previous file with comments | « mojo/edk/system/incoming_endpoint.cc ('k') | mojo/edk/system/local_data_pipe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698