From 2933580fcac85dbd0ad6eb5ccb5fe88fef40a128 Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Mon, 13 Jul 2009 20:38:56 +0000 Subject: Add an optional channel name to the extension message connect event. Also changed the way port IDs work internally to reduce confusion. Each end of the port has its own ID, not the ID of its opposite end. BUG=13706 TEST=no Review URL: http://codereview.chromium.org/155381 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20519 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/mock_render_thread.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/renderer/mock_render_thread.cc') diff --git a/chrome/renderer/mock_render_thread.cc b/chrome/renderer/mock_render_thread.cc index 3494b12..17dab52 100644 --- a/chrome/renderer/mock_render_thread.cc +++ b/chrome/renderer/mock_render_thread.cc @@ -97,8 +97,9 @@ void MockRenderThread::OnMsgCreateWidget(int opener_id, } void MockRenderThread::OnMsgOpenChannelToExtension( - int routing_id, const std::string& extension_id, int* channel_id) { - *channel_id = 0; + int routing_id, const std::string& extension_id, + const std::string& channel_name, int* port_id) { + *port_id = 0; } void MockRenderThread::OnDuplicateSection( -- cgit v1.1