|
IPC: Fix attachment brokering race condition.
A channel must be registered as a broker communication channel before it is
connected. When possible, invert the sequence of the call to connect a channel,
and the call to register the channel as a broker. In some cases, the channel
constructor and the channel initializer had to be separated, so that the
registration could happen in between.
This requirement is now enforced by a CHECK, which verifies that a channel
cannot be registered after it is connected.
BUG= 598088
Committed: https://crrev.com/9097190cafdecfb1b5796b65c83af92e861ccaf8
Cr-Commit-Position: refs/heads/master@{#389618}
Total comments: 4
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+135 lines, -48 lines) |
Patch |
|
M |
components/nacl/loader/nacl_listener.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
3 chunks |
+18 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/child/child_thread_impl.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/common/child_process_host_impl.cc
|
View
|
1
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
ipc/attachment_broker_mac_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
5 chunks |
+19 lines, -5 lines |
0 comments
|
Download
|
|
M |
ipc/attachment_broker_privileged_win_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
|
M |
ipc/ipc_channel.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_common.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_nacl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_posix.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_proxy.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_proxy.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_endpoint.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ipc/ipc_test_base.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/mojo/ipc_channel_mojo.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/desktop_process.cc
|
View
|
1
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
remoting/host/desktop_session_agent.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/ipc_util.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/ipc_util_posix.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
remoting/host/ipc_util_win.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
remoting/host/remoting_me2me_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
remoting/host/win/unprivileged_process_delegate.cc
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/host/win/wts_session_process_delegate.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
Total messages: 62 (29 generated)
|