summaryrefslogtreecommitdiffstats
path: root/content/common/message_router.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 16:22:29 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 16:22:29 +0000
commitbae061f73d582a23fe2ee1d9df146ee9dac2b257 (patch)
treea1c5a6ec78afbaaad21deaef2d50a4a1342d7393 /content/common/message_router.cc
parent18a7019dbdee8d72bcdf060fb656295f3b64b60d (diff)
downloadchromium_src-bae061f73d582a23fe2ee1d9df146ee9dac2b257.zip
chromium_src-bae061f73d582a23fe2ee1d9df146ee9dac2b257.tar.gz
chromium_src-bae061f73d582a23fe2ee1d9df146ee9dac2b257.tar.bz2
Remove ChildThread::ResolveRoute. The renderer cases are safer done by using RenderViewImpl's own map. Same for gpu_channel which has a map along with message router.
Review URL: https://codereview.chromium.org/14238028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/message_router.cc')
-rw-r--r--content/common/message_router.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/content/common/message_router.cc b/content/common/message_router.cc
index d3eef77..f73e654 100644
--- a/content/common/message_router.cc
+++ b/content/common/message_router.cc
@@ -42,7 +42,7 @@ bool MessageRouter::OnMessageReceived(const IPC::Message& msg) {
}
bool MessageRouter::RouteMessage(const IPC::Message& msg) {
- IPC::Listener* listener = ResolveRoute(msg.routing_id());
+ IPC::Listener* listener = routes_.Lookup(msg.routing_id());
if (!listener)
return false;
@@ -50,8 +50,4 @@ bool MessageRouter::RouteMessage(const IPC::Message& msg) {
return true;
}
-IPC::Listener* MessageRouter::ResolveRoute(int32 routing_id) {
- return routes_.Lookup(routing_id);
-}
-
} // namespace content