summaryrefslogtreecommitdiffstats
path: root/mojo/edk/system/channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/edk/system/channel.cc')
-rw-r--r--mojo/edk/system/channel.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/mojo/edk/system/channel.cc b/mojo/edk/system/channel.cc
index 8889919..71d7208 100644
--- a/mojo/edk/system/channel.cc
+++ b/mojo/edk/system/channel.cc
@@ -36,7 +36,7 @@ Channel::Channel(embedder::PlatformSupport* platform_support)
channel_manager_(nullptr) {
}
-bool Channel::Init(scoped_ptr<RawChannel> raw_channel) {
+void Channel::Init(scoped_ptr<RawChannel> raw_channel) {
DCHECK(creation_thread_checker_.CalledOnValidThread());
DCHECK(raw_channel);
@@ -44,14 +44,8 @@ bool Channel::Init(scoped_ptr<RawChannel> raw_channel) {
// becomes thread-safe.
DCHECK(!is_running_);
raw_channel_ = raw_channel.Pass();
-
- if (!raw_channel_->Init(this)) {
- raw_channel_.reset();
- return false;
- }
-
+ raw_channel_->Init(this);
is_running_ = true;
- return true;
}
void Channel::SetChannelManager(ChannelManager* channel_manager) {