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

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

Issue 898423002: Fix mojo::embedder::CreateChannel(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index c2daeabfce9c5b669fb84f5c762cb45fc9149649..2eee5001024b2c34c9c2580442ea678796e3b038 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -127,11 +127,11 @@ ScopedMessagePipeHandle CreateChannel(
DCHECK(io_thread_task_runner);
DCHECK(!callback.is_null());
- scoped_ptr<ChannelInfo> channel_info(new ChannelInfo(MakeChannelId()));
+ system::ChannelId channel_id = MakeChannelId();
+ scoped_ptr<ChannelInfo> channel_info(new ChannelInfo(channel_id));
scoped_refptr<system::MessagePipeDispatcher> dispatcher =
internal::g_channel_manager->CreateChannel(
- channel_info->channel_id, platform_handle.Pass(),
- io_thread_task_runner,
+ channel_id, platform_handle.Pass(), io_thread_task_runner,
base::Bind(callback, base::Unretained(channel_info.release())),
callback_thread_task_runner);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698