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

Issue 599333002: ChannelMojo: Handle when ChannelMojo outlives ChannelMojoHost (Closed)

Created:
6 years, 2 months ago by Hajime Morrita
Modified:
6 years, 2 months ago
Reviewers:
jam, viettrungluu
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
Project:
chromium
Visibility:
Public.

Description

ChannelMojo: Handle when ChannelMojo outlives ChannelMojoHost In some case ChannelMojo outlives ChannelMojoHost because two objects are living in diffent thread. Instead of using lifecycle callbacks, this CL relies on WeakPtr. See comment on ipc_channel_mojo_host.h for more details. This CL also fixes a crash on --single-process mode. R=viettrungluu@chromium.org TBR=jam@chromium.org TEST=content_browsertests (with --enable-renderer-mojo-channel on) BUG=377980 Committed: https://crrev.com/e9453ea69cbb3d52e67394e75c747b0b2d970621 Cr-Commit-Position: refs/heads/master@{#296871}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Updated #

Total comments: 4

Patch Set 3 : Landing #

Patch Set 4 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -62 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 chunks +6 lines, -5 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 1 2 3 5 chunks +14 lines, -7 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 4 chunks +27 lines, -17 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_host.h View 1 2 chunks +12 lines, -10 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_host.cc View 1 2 3 1 chunk +88 lines, -20 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ipc/mojo/ipc_mojo_perftest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
Hajime Morrita
6 years, 2 months ago (2014-09-25 02:13:55 UTC) #1
viettrungluu
https://codereview.chromium.org/599333002/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/599333002/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode2110 content/browser/renderer_host/render_process_host_impl.cc:2110: base::ProcessHandle process = child_process_launcher_ When can child_process_launcher_ be null? ...
6 years, 2 months ago (2014-09-25 19:38:34 UTC) #2
Hajime Morrita
PTAL? https://codereview.chromium.org/599333002/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/599333002/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode2110 content/browser/renderer_host/render_process_host_impl.cc:2110: base::ProcessHandle process = child_process_launcher_ On 2014/09/25 19:38:34, viettrungluu ...
6 years, 2 months ago (2014-09-25 22:00:04 UTC) #3
viettrungluu
lgtm w/nits https://codereview.chromium.org/599333002/diff/20001/ipc/mojo/ipc_channel_mojo_host.cc File ipc/mojo/ipc_channel_mojo_host.cc (right): https://codereview.chromium.org/599333002/diff/20001/ipc/mojo/ipc_channel_mojo_host.cc#newcode13 ipc/mojo/ipc_channel_mojo_host.cc:13: // The delete class lives in IO ...
6 years, 2 months ago (2014-09-25 22:09:07 UTC) #4
Hajime Morrita
Thanks! Landing... https://codereview.chromium.org/599333002/diff/20001/ipc/mojo/ipc_channel_mojo_host.cc File ipc/mojo/ipc_channel_mojo_host.cc (right): https://codereview.chromium.org/599333002/diff/20001/ipc/mojo/ipc_channel_mojo_host.cc#newcode13 ipc/mojo/ipc_channel_mojo_host.cc:13: // The delete class lives in IO ...
6 years, 2 months ago (2014-09-25 22:15:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/599333002/40001
6 years, 2 months ago (2014-09-25 22:16:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/599333002/60001
6 years, 2 months ago (2014-09-25 23:56:45 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 3b37273710c24f1c829c7bb273d9657f541cd918
6 years, 2 months ago (2014-09-26 03:20:55 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 03:21:29 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e9453ea69cbb3d52e67394e75c747b0b2d970621
Cr-Commit-Position: refs/heads/master@{#296871}

Powered by Google App Engine
This is Rietveld 408576698