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

Issue 1054253005: ChannelMojo: Ensure that it always has ScopedIPCSupport (Closed)

Created:
5 years, 8 months ago by Hajime Morrita
Modified:
5 years, 8 months ago
CC:
chromium-reviews, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ChannelMojo: Ensure that it always has ScopedIPCSupport ChannelMojo has ScopedIPCSupport, but it is instantiated only in in-process mode. This CL lets it always instantiate to make it clear that ChannelInfo is protected by the ScopedIPCSupport. It simplifies the relationship between the support object and the channel, and makes the lifecycle invariant reasonable. With this change, we no longer need to protect ChannelMojo with ScopedIPCSupport on its client side. Now it's built-in. Note that this is a speculative fix of fuzzer generated crash, where Mojo channel related globals are gone before when channel mojo is being destroyed. BUG=473438 R=viettrungluu@chromium.org, rockot@chromium.org Committed: https://crrev.com/808706e71c213c916815e967e3156cae64d12c00 Cr-Commit-Position: refs/heads/master@{#324308} Committed: https://crrev.com/00194e78d7abbe83af8aab3e23c49e90d767126f Cr-Commit-Position: refs/heads/master@{#324488}

Patch Set 1 #

Patch Set 2 : Fixed the ipc_fuzzer breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -128 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M content/child/child_thread_impl.h View 1 chunk +0 lines, -9 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 3 chunks +3 lines, -49 lines 0 comments Download
M content/test/render_thread_impl_browser_test_ipc_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 4 chunks +10 lines, -6 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 9 chunks +38 lines, -25 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_host.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 6 chunks +5 lines, -14 lines 0 comments Download
M ipc/mojo/ipc_mojo_perftest.cc View 4 chunks +4 lines, -13 lines 0 comments Download
M tools/ipc_fuzzer/message_replay/replay_process.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
Hajime Morrita
5 years, 8 months ago (2015-04-03 22:43:00 UTC) #1
Ken Rockot(use gerrit already)
lgtm
5 years, 8 months ago (2015-04-06 23:55:08 UTC) #2
Hajime Morrita
Charlie, could you take a look at this as a content/ OWNER? It just follows ...
5 years, 8 months ago (2015-04-07 20:52:41 UTC) #3
Charlie Reis
Rubber stamp LGTM for content/.
5 years, 8 months ago (2015-04-07 22:23:25 UTC) #5
Hajime Morrita
Thanks Charlie! Trung: PTAL at ipc/mojo ?
5 years, 8 months ago (2015-04-07 23:11:04 UTC) #6
viettrungluu
ipc/mojo lgtm
5 years, 8 months ago (2015-04-08 20:05:37 UTC) #7
Hajime Morrita
Thanks! Landing...
5 years, 8 months ago (2015-04-08 20:38:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1054253005/1
5 years, 8 months ago (2015-04-08 20:41:16 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-08 23:42:44 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/808706e71c213c916815e967e3156cae64d12c00 Cr-Commit-Position: refs/heads/master@{#324308}
5 years, 8 months ago (2015-04-08 23:43:38 UTC) #12
Sorin Jianu
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1069943003/ by sorin@chromium.org. ...
5 years, 8 months ago (2015-04-09 16:23:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1054253005/20001
5 years, 8 months ago (2015-04-09 18:13:23 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-09 19:43:37 UTC) #17
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 19:44:38 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00194e78d7abbe83af8aab3e23c49e90d767126f
Cr-Commit-Position: refs/heads/master@{#324488}

Powered by Google App Engine
This is Rietveld 408576698