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

Unified Diff: mojo/embedder/embedder.cc

Issue 223783006: Mojo: Make Channel take a RawChannel rather than creating it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spurious space Created 6 years, 9 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 | mojo/system/channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/embedder/embedder.cc
diff --git a/mojo/embedder/embedder.cc b/mojo/embedder/embedder.cc
index 8d5f2d59b65bf85a7fd99f7abf7eaefa568002ae..ed6aecfec1df3cadbfd2a7df21d1d8c4db29d616 100644
--- a/mojo/embedder/embedder.cc
+++ b/mojo/embedder/embedder.cc
@@ -12,6 +12,7 @@
#include "mojo/system/core_impl.h"
#include "mojo/system/message_pipe.h"
#include "mojo/system/message_pipe_dispatcher.h"
+#include "mojo/system/raw_channel.h"
namespace mojo {
namespace embedder {
@@ -31,7 +32,8 @@ static void CreateChannelOnIOThread(
// Create and initialize a |system::Channel|.
channel_info->channel = new system::Channel();
- bool success = channel_info->channel->Init(platform_handle.Pass());
+ bool success = channel_info->channel->Init(
+ system::RawChannel::Create(platform_handle.Pass()));
DCHECK(success);
// Attach the message pipe endpoint.
« no previous file with comments | « no previous file | mojo/system/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698