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

Issue 8417054: Allow proxy channels to be created without initializing the underlying channel. (Closed)

Created:
9 years, 1 month ago by kkania
Modified:
9 years ago
Reviewers:
dmac, Paweł Hajdan Jr.
CC:
chromium-reviews, robertshield, darin-cc_chromium.org, jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Allow proxy channels to be created without initializing the underlying channel. This fixes a bug where a client needed to guarantee a message filter was in place before any messages were received. It also follows the style of not having constructors that do complex initialization. BUG=102894 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110229

Patch Set 1 : ... #

Total comments: 8

Patch Set 2 : address dmac's comments #

Patch Set 3 : Init -> StartWatching #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -48 lines) Patch
M chrome/test/automation/automation_proxy.cc View 1 2 3 1 chunk +13 lines, -14 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 3 chunks +18 lines, -10 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 3 4 chunks +10 lines, -10 lines 0 comments Download
M ipc/ipc_sync_channel.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 2 3 2 chunks +22 lines, -11 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 3 4 chunks +76 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
kkania
9 years, 1 month ago (2011-11-03 21:30:46 UTC) #1
Paweł Hajdan Jr.
Automation LGTM. I didn't review the ipc code.
9 years, 1 month ago (2011-11-04 07:58:17 UTC) #2
kkania
thanks Pawel, dmac will look at the ipc stuff
9 years, 1 month ago (2011-11-04 18:12:12 UTC) #3
dmac
http://codereview.chromium.org/8417054/diff/2001/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): http://codereview.chromium.org/8417054/diff/2001/ipc/ipc_channel_proxy.cc#newcode301 ipc/ipc_channel_proxy.cc:301: void ChannelProxy::Init(const IPC::ChannelHandle& channel_handle, anyway to enforce that this ...
9 years, 1 month ago (2011-11-04 22:30:44 UTC) #4
kkania
http://codereview.chromium.org/8417054/diff/2001/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): http://codereview.chromium.org/8417054/diff/2001/ipc/ipc_channel_proxy.cc#newcode301 ipc/ipc_channel_proxy.cc:301: void ChannelProxy::Init(const IPC::ChannelHandle& channel_handle, On 2011/11/04 22:30:44, dmac wrote: ...
9 years, 1 month ago (2011-11-07 20:25:16 UTC) #5
kkania
On 2011/11/07 20:25:16, kkania wrote: > http://codereview.chromium.org/8417054/diff/2001/ipc/ipc_channel_proxy.cc > File ipc/ipc_channel_proxy.cc (right): > > http://codereview.chromium.org/8417054/diff/2001/ipc/ipc_channel_proxy.cc#newcode301 > ...
9 years, 1 month ago (2011-11-10 16:43:13 UTC) #6
dmac
LGTM
9 years, 1 month ago (2011-11-10 17:01:26 UTC) #7
kkania
only changed name of SyncChannel::Init -> SyncChannel::StartWatching (also sync code) automation_proxy.cc wasn't compiling because SyncChannel::Init ...
9 years, 1 month ago (2011-11-11 18:29:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/8417054/28002
9 years, 1 month ago (2011-11-15 23:30:11 UTC) #9
commit-bot: I haz the power
9 years, 1 month ago (2011-11-16 01:06:48 UTC) #10
Change committed as 110229

Powered by Google App Engine
This is Rietveld 408576698