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

Issue 1261253002: Add waitable event for SyncMessageFilter init (Closed)

Created:
5 years, 4 months ago by boliu
Modified:
5 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hold message in SyncMessageFilter before init SyncMessageFilter::send will fail before init (OnFilterAdded) on IO thread but provides no init signal externally. This can cause races during start up. Instead, before init, hold any messages in a queue and flush the queue in init instead. BUG=514929 Committed: https://crrev.com/9bd6368468d43c5eb586a108233a2cf4ab50c9ce Cr-Commit-Position: refs/heads/master@{#340930}

Patch Set 1 #

Patch Set 2 : queue #

Patch Set 3 : sender_ check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -13 lines) Patch
M ipc/ipc_sync_message_filter.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M ipc/ipc_sync_message_filter.cc View 1 2 3 chunks +23 lines, -13 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
boliu
jam: could you take a look and the ipc changes, and see if this direction ...
5 years, 4 months ago (2015-07-29 02:14:07 UTC) #2
piman
On 2015/07/29 02:14:07, boliu wrote: > jam: could you take a look and the ipc ...
5 years, 4 months ago (2015-07-29 02:24:04 UTC) #3
boliu
On 2015/07/29 02:24:04, piman (Very slow to review) wrote: > On 2015/07/29 02:14:07, boliu wrote: ...
5 years, 4 months ago (2015-07-29 02:28:06 UTC) #4
boliu
On 2015/07/29 02:28:06, boliu wrote: > On 2015/07/29 02:24:04, piman (Very slow to review) wrote: ...
5 years, 4 months ago (2015-07-29 17:13:17 UTC) #5
jam
lgtm
5 years, 4 months ago (2015-07-29 18:27:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1261253002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1261253002/40001
5 years, 4 months ago (2015-07-29 18:30:15 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-07-29 18:38:16 UTC) #9
commit-bot: I haz the power
5 years, 4 months ago (2015-07-29 18:39:22 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9bd6368468d43c5eb586a108233a2cf4ab50c9ce
Cr-Commit-Position: refs/heads/master@{#340930}

Powered by Google App Engine
This is Rietveld 408576698