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

Issue 2488753002: Ensure clean up functions of MessageFilter are paired with their initialization functions (Closed)

Created:
4 years, 1 month ago by tzik
Modified:
4 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure clean up functions of MessageFilter are paired with their initialization functions This is an attempt to address http://crrev.com/2469123003/#msg28. MessageFilter::OnFilterRemoved and OnChannelClosing are now called even when the channel is closed before it completes its initialization. In that case, these functions are not paired to OnFilterAdded and OnChannelOpened. This CL makes OnFilterAdded and OnChannelConnected right before pending filters are removed, so that they are paired with their clean up functions. BUG= Committed: https://crrev.com/8941d772a304208a5ad4fb47dfa3c669fb3b5d11 Cr-Commit-Position: refs/heads/master@{#431199}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M ipc/ipc_channel_proxy.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
tzik
PTAL. This is another proposal to fix the test failure after http://crrev.com/2469123003.
4 years, 1 month ago (2016-11-08 17:26:59 UTC) #8
Ken Rockot(use gerrit already)
The semantics of all these different events seem like they would easily confuse a reader. ...
4 years, 1 month ago (2016-11-08 17:33:04 UTC) #9
tzik
On 2016/11/08 17:33:04, Ken Rockot wrote: > The semantics of all these different events seem ...
4 years, 1 month ago (2016-11-09 13:57:38 UTC) #16
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2488753002/diff/20001/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://codereview.chromium.org/2488753002/diff/20001/ipc/ipc_channel_proxy.cc#newcode215 ipc/ipc_channel_proxy.cc:215: filter->OnFilterAdded(nullptr); nit: I think it's worth adding a ...
4 years, 1 month ago (2016-11-10 00:49:55 UTC) #19
tzik
https://codereview.chromium.org/2488753002/diff/20001/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://codereview.chromium.org/2488753002/diff/20001/ipc/ipc_channel_proxy.cc#newcode215 ipc/ipc_channel_proxy.cc:215: filter->OnFilterAdded(nullptr); On 2016/11/10 00:49:55, Ken Rockot wrote: > nit: ...
4 years, 1 month ago (2016-11-10 06:17:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2488753002/40001
4 years, 1 month ago (2016-11-10 06:18:02 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-10 07:06:26 UTC) #25
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8941d772a304208a5ad4fb47dfa3c669fb3b5d11 Cr-Commit-Position: refs/heads/master@{#431199}
4 years, 1 month ago (2016-11-10 07:08:25 UTC) #27
tzik
4 years, 1 month ago (2016-11-14 07:32:08 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2497843002/ by tzik@chromium.org.

The reason for reverting is: This causes crashes on
SyncMessageFilter::OnFilterAdded.

BUG=664511.

Powered by Google App Engine
This is Rietveld 408576698