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

Unified Diff: content/child/webmessageportchannel_impl.cc

Issue 198073003: Remove some content_child dependency from content_common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ffd442cb fix for bots barfing on clang style checks 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 | « content/child/child_thread.cc ('k') | content/common/gpu/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webmessageportchannel_impl.cc
diff --git a/content/child/webmessageportchannel_impl.cc b/content/child/webmessageportchannel_impl.cc
index 86e80fb09dbc78f651657feffcd5e74bca50ad8e..cf439cc0742851de8270d70f228bf20b1e86f20c 100644
--- a/content/child/webmessageportchannel_impl.cc
+++ b/content/child/webmessageportchannel_impl.cc
@@ -56,7 +56,7 @@ WebMessagePortChannelImpl::~WebMessagePortChannelImpl() {
Send(new MessagePortHostMsg_DestroyMessagePort(message_port_id_));
if (route_id_ != MSG_ROUTING_NONE)
- ChildThread::current()->RemoveRoute(route_id_);
+ ChildThread::current()->GetRouter()->RemoveRoute(route_id_);
}
void WebMessagePortChannelImpl::setClient(WebMessagePortChannelClient* client) {
@@ -149,7 +149,7 @@ void WebMessagePortChannelImpl::Init() {
&route_id_, &message_port_id_));
}
- ChildThread::current()->AddRoute(route_id_, this);
+ ChildThread::current()->GetRouter()->AddRoute(route_id_, this);
}
void WebMessagePortChannelImpl::Entangle(
@@ -193,7 +193,7 @@ void WebMessagePortChannelImpl::Send(IPC::Message* message) {
return;
}
- ChildThread::current()->Send(message);
+ ChildThread::current()->GetRouter()->Send(message);
}
bool WebMessagePortChannelImpl::OnMessageReceived(const IPC::Message& message) {
« no previous file with comments | « content/child/child_thread.cc ('k') | content/common/gpu/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698