summaryrefslogtreecommitdiffstats
path: root/mojo/embedder
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 22:53:10 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 22:53:10 +0000
commitadfe633ddfcda1b8271390612c1eb46f7a05f7c6 (patch)
treebc7bf3116bea7aed1cd2dcb7d2d80df064b0638a /mojo/embedder
parent7cf7320202334174a1fb70a974dcf3eab26037db (diff)
downloadchromium_src-adfe633ddfcda1b8271390612c1eb46f7a05f7c6.zip
chromium_src-adfe633ddfcda1b8271390612c1eb46f7a05f7c6.tar.gz
chromium_src-adfe633ddfcda1b8271390612c1eb46f7a05f7c6.tar.bz2
Mojo: Make Channel take a RawChannel rather than creating it.
This better decouples things, and will offer some flexibility that we may need shortly. R=sky@chromium.org, darin@chromium.org Review URL: https://codereview.chromium.org/223783006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261560 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/embedder')
-rw-r--r--mojo/embedder/embedder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/mojo/embedder/embedder.cc b/mojo/embedder/embedder.cc
index 8d5f2d5..ed6aecf 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.